Add more logging
This commit is contained in:
parent
6a92249ca2
commit
424f9dc8da
|
@ -105,7 +105,11 @@ def document(document_id):
|
||||||
@app.route('/login/', methods=['GET', 'POST'])
|
@app.route('/login/', methods=['GET', 'POST'])
|
||||||
def login():
|
def login():
|
||||||
form = LoginForm()
|
form = LoginForm()
|
||||||
if form.validate_on_submit() and check_password(current_app, form.password.data):
|
if form.validate_on_submit():
|
||||||
|
logger.debug('checking pw')
|
||||||
|
valid = check_password(current_app, form.password.data)
|
||||||
|
logging.debug('checked, got' + str(valid))
|
||||||
|
if valid:
|
||||||
login_user(Admin())
|
login_user(Admin())
|
||||||
return redirect(url_for('index'))
|
return redirect(url_for('index'))
|
||||||
return render_template('login.jinja', form=form)
|
return render_template('login.jinja', form=form)
|
||||||
|
|
Loading…
Reference in New Issue