Add some logging and only permit backend CAS auth if the user is not already authenticated

This commit is contained in:
Valentin Samir
2016-07-04 22:54:15 +02:00
parent 624f2f48ed
commit 6b3b280d31
3 changed files with 31 additions and 2 deletions

View File

@ -228,11 +228,12 @@ class CanLogin(object):
self.assertEqual(response.status_code, code)
# this message is displayed to the user upon successful authentication, so it should not
# appear
self.assertFalse(
self.assertNotIn(
(
b"You have successfully logged into "
b"the Central Authentication Service"
) in response.content
),
response.content
)
# if authentication has failed, these session variables should not be set