17 lines
494 B
Python
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')
|
|
|