1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 06:44:16 +00:00

[tests] Make shib test pass

This commit is contained in:
zhengxie
2016-03-24 16:58:55 +08:00
parent 65a336f573
commit f43cdb3f35
3 changed files with 7 additions and 12 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(reverse('shib_complete'))
return HttpResponseRedirect('shib-complete')
# User is valid. Set request.user and persist user in the session
# by logging the user in.