Browse files

Removed successfully logged in user message

This message isn't entirely useful and adds to the user experience in a bad
way by default. If a site wants to maintain this user message it can be done
with an custom subclass of SignupView.
  • Loading branch information...
1 parent 0c1a4e5 commit abebb6f54b7c21c96d8fe93e73cbc806a9ee9bca @brosner brosner committed Oct 29, 2012
Showing with 0 additions and 12 deletions.
  1. +0 −12 account/views.py
View
12 account/views.py
@@ -36,10 +36,6 @@ class SignupView(FormView):
"level": messages.INFO,
"text": _("Confirmation email sent to %(email)s.")
},
- "logged_in": {
- "level": messages.SUCCESS,
- "text": _("Successfully logged in as %(user)s.")
- },
"invalid_signup_code": {
"level": messages.WARNING,
"text": _("The code %(code)s is invalid.")
@@ -137,14 +133,6 @@ def form_valid(self, form):
}
)
self.login_user()
- if self.messages.get("logged_in"):
- messages.add_message(
- self.request,
- self.messages["logged_in"]["level"],
- self.messages["logged_in"]["text"] % {
- "user": user_display(self.created_user)
- }
- )
return redirect(self.get_success_url())
def get_success_url(self, fallback_url=None, **kwargs):

0 comments on commit abebb6f

Please sign in to comment.