Fixes login. Renamed User.is_active to User.active
This commit is contained in:
parent
66edf01f10
commit
dc9173449c
|
@ -15,4 +15,5 @@ class User(db.Model, UserMixin):
|
|||
email = db.Column(db.String(120), unique=True)
|
||||
password = db.Column(db.String(20))
|
||||
role = db.Column(db.SmallInteger, default=ROLE_USER)
|
||||
is_active = db.Column(db.Boolean, default=False)
|
||||
active = db.Column(db.Boolean, default=False)
|
||||
|
||||
|
|
|
@ -17,7 +17,4 @@ def login():
|
|||
login_user(user)
|
||||
return redirect(request.args.get('next') or url_for('index'))
|
||||
|
||||
return render_template(
|
||||
'auth/login.html',
|
||||
form=form,
|
||||
)
|
||||
return render_template('auth/login.html', form=form,)
|
||||
|
|
Loading…
Reference in New Issue