1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 22:01:06 +00:00

[shib] Fix shib complete url bug

This commit is contained in:
zhengxie
2016-05-17 17:47:07 +08:00
parent 87c6b613c5
commit f12215ec5e
2 changed files with 5 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ class ShibbolethRemoteUserMiddleware(RemoteUserMiddleware):
user = auth.authenticate(remote_user=username, shib_meta=shib_meta)
if user:
if not user.is_active:
return HttpResponseRedirect('shib-complete')
return HttpResponseRedirect(reverse('shib_complete'))
# User is valid. Set request.user and persist user in the session
# by logging the user in.