Commits

offline committed e789e09

django messages bugfix

Comments (0)

Files changed (1)

openauth/views.py

     REGISTRATION_ALLOWED setting.
     """
     if not settings.REGISTRATION_ALLOWED:
-        messages.notice(request, lang.REGISTRATION_DISABLED)
+        messages.info(request, lang.REGISTRATION_DISABLED)
         return redirect(settings.REGISTRATION_DISABLED_URL)
     if request.method == "POST":
         form = str_to_class(settings.REGISTRATION_FORM)(request.POST)
             confirmation = Confirmation.objects.create(user, settings.PASSWORD_RESET_TYPE, redirect_url=reverse("openauth-change-password"))
             args = {'domain': request.get_host(), 'url': confirmation.get_url(request)}
             email_template(user.email, 'openauth/mail/reset_password.txt', **args)
-            messages.notice(request, lang.CHECK_YOUR_EMAIL)
+            messages.info(request, lang.CHECK_YOUR_EMAIL)
             return redirect(settings.RESET_PASSWORD_URL)
     else:
         form = str_to_class(settings.RESET_PASSWORD_FORM)()