Fixes login. Renamed User.is_active to User.active

This commit is contained in:
Andrey Makhnach 2013-06-15 23:20:11 +03:00
parent 66edf01f10
commit dc9173449c
2 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -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,)