This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
auf/authentic2/src/authentic2_auf/views.py

17 lines
494 B
Python

from django.shortcuts import render
from auth.django.secretquestions.decorators import secret_questions_required
from auth.django.secretquestions.views import secret_questions
from django.contrib.auth import authenticate
from authentic2.utils import login
from . import decorators
__ALL_ = [ 'sso' ]
@decorators.plugin_enabled
@secret_questions_required(60)
def lost_password_login(request)
user = authenticate(user=request.user)
return login(request, user, 'secret-questions')