fix login error message

This commit is contained in:
Son NK 2019-12-23 19:00:31 +00:00
parent bcbe239f60
commit f80adae625
1 changed files with 2 additions and 2 deletions

View File

@ -27,9 +27,9 @@ def login():
user = User.filter_by(email=form.email.data).first()
if not user:
flash("Email not exist in our system", "error")
flash("Email or password incorrect", "error")
elif not user.check_password(form.password.data):
flash("Wrong password", "error")
flash("Email or password incorrect", "error")
elif not user.activated:
show_resend_activation = True
flash(