Commits

Sergii Gulenok committed a78afb2

* fixed global_settings problem for facebook

  • Participants
  • Parent commits 22854ba

Comments (0)

Files changed (1)

publicauth/backends/oauth2.py

         raise exceptions.NotImplementedError()
 
     def complete(self, request, response):
-        request.session['next_url'] = request.GET.get("next") or settings.LOGIN_REDIRECT_URL
+        request.session['next_url'] = request.GET.get("next") or global_settings.LOGIN_REDIRECT_URL
         data = self.fill_extra_fields(request, self.get_extra_data(response))
         request.session['extra'] = data
         request.session['identity'] = data["id"]