fix
This commit is contained in:
@@ -30,7 +30,7 @@ def login():
|
|||||||
user = User.query.filter_by(email=email).first()
|
user = User.query.filter_by(email=email).first()
|
||||||
if user and bcrypt.check_password_hash(user.password, password):
|
if user and bcrypt.check_password_hash(user.password, password):
|
||||||
login_user(user)
|
login_user(user)
|
||||||
return redirect(url_for('upload-document'))
|
return redirect(url_for('upload_document'))
|
||||||
return render_template('login.html')
|
return render_template('login.html')
|
||||||
|
|
||||||
@app.route('/logout/')
|
@app.route('/logout/')
|
||||||
|
|||||||
Reference in New Issue
Block a user