Warning message on service authentication
This commit is contained in:
parent
711928d455
commit
db65c3c50f
1 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,10 @@ def login(request):
|
||||||
if gateway:
|
if gateway:
|
||||||
list(messages.get_messages(request)) # clean messages before leaving the django app
|
list(messages.get_messages(request)) # clean messages before leaving the django app
|
||||||
return redirect(service)
|
return redirect(service)
|
||||||
|
if request.session.get("authenticated") and renew:
|
||||||
|
messages.add_message(request, messages.WARNING, u"Demande de réautentification par le service %s." % service)
|
||||||
|
else:
|
||||||
|
messages.add_message(request, messages.WARNING, u"Demande d'autentification par le service %s." % service)
|
||||||
return render(request, settings.CAS_LOGIN_TEMPLATE, {'form':form})
|
return render(request, settings.CAS_LOGIN_TEMPLATE, {'form':form})
|
||||||
|
|
||||||
def logout(request):
|
def logout(request):
|
||||||
|
|
Loading…
Reference in a new issue