nailed it
parent
f5c4c55f20
commit
23483292c5
2
auth.py
2
auth.py
|
@ -319,7 +319,7 @@ def login():
|
|||
flash('Invalid username or password')
|
||||
return render_template('login_oauth.html', form=form, next=next)
|
||||
user = LDAPUserProxy(username)
|
||||
if not user.active:
|
||||
if not user.is_active:
|
||||
flash('User inactive - have you paid your membership fees?')
|
||||
return render_template('login_oauth.html', form=form, next=next)
|
||||
|
||||
|
|
Loading…
Reference in New Issue