offline  committed f372c64

registration bugfix

  • Participants
  • Parent commits 67df27d
  • Branches default

Comments (0)

Files changed (1)

File openauth/

     Registration should be allowed in REGISTRATION_ALLOWED setting
     if request.user.is_authenticated():
-            return message(request, _('You have to logout before registration'), 'notice', '/')
+        return message(request, _('You have to logout before new account registration'), 'notice', '/')
     if not openauth.settings.REGISTRATION_ALLOWED:
-        request.flash['notice'] = _('Sorry. Registration is disabled.')
         return message(request, _('We are sorry, but registration is disabled. Come back later'), 'notice', '/')
     if request.POST:
         form = str_to_class(openauth.settings.REGISTRATION_FORM)(request.POST)