Commits

offline committed d21158d

activation redirect bugfix

  • Participants
  • Parent commits 6bf0334

Comments (0)

Files changed (1)

File publicauth/backends/__init__.py

         user = auth.authenticate(identity=self.identity, provider=self.provider)
         if user and settings.PUBLICAUTH_ACTIVATION_REQUIRED and not user.is_active:
             messages.add_message(request, messages.ERROR, lang.NOT_ACTIVATED)
-            raise Redirect(global_settings.LOGIN_REDIRECT_URL)
+            raise Redirect(settings.ACTIVATION_REDIRECT_URL)
 
         # authenticate and redirect user.
         if user: