Skip to content

Commit

Permalink
remove flash messages for success register and success login
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Mar 15, 2015
1 parent 2b5eef0 commit 24689b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions formspree/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def register():
return render_template('users/register.html')

login_user(user)
flash('Your account is successfully registered.')
# flash('Your account is successfully registered.') # this is ugly.

return redirect(url_for('dashboard'))

Expand All @@ -41,7 +41,7 @@ def login():
flash("Invalid Password. Please verify the password entered.")
return redirect(url_for('login'))
login_user(user, remember = remember_me)
flash('Logged in successfully')
# flash('Logged in successfully') # this is ugly
return redirect(request.args.get('next') or url_for('dashboard'))


Expand Down

0 comments on commit 24689b8

Please sign in to comment.