Updated login
This commit is contained in:
parent
ac16bc8bf1
commit
ea288ed838
|
@ -36,6 +36,9 @@ def verify_bcrypt(passphrase, hashed_password):
|
|||
|
||||
@app.route('/')
|
||||
def index():
|
||||
if 'passwordhash' in request.cookies and request.cookies.get('passwordhash'):
|
||||
return redirect(url_for('dashboard'))
|
||||
else:
|
||||
return render_template('index.html')
|
||||
|
||||
@app.route('/loginapi', methods=['POST'])
|
||||
|
|
Loading…
Reference in New Issue