ldap second pass, working state
This commit is contained in:
parent
838eb3cb06
commit
e9709b6c8f
6 changed files with 37 additions and 28 deletions
|
@ -12,7 +12,7 @@ def login():
|
|||
flash('Form invalid', 'warning')
|
||||
return redirect(url_for('auth.login'))
|
||||
|
||||
if User.auth(form.user):
|
||||
if User.auth(form.user, request.form['password']):
|
||||
return redirect(request.args.get("next") or url_for(current_app.config['ROOT_ENDPOINT']))
|
||||
else:
|
||||
return redirect(url_for('auth.login'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue