Commit a591e7ef by Linus Lewandowski

Fix password reset.

parent a1c7f2fb
Pipeline #18404925 passed with stages
in 3 minutes 37 seconds
from django.http import HttpResponseRedirect
from django.utils.decorators import method_decorator
from django.views import View
from ..token import in_url_authentication
from .auth import AuthView
from .auth import get_success_url
@method_decorator(in_url_authentication, name='dispatch')
class LoginByEmail(AuthView):
redirect_authenticated_user = True
class LoginByEmail(View):
@method_decorator(in_url_authentication)
def get(self, request, *args, **kwargs):
redirect_to = get_success_url(self.request, request.external_identity.user.id)
return HttpResponseRedirect(redirect_to)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment