Bug 1580399: Stop users logging in to suspended/expired institutions
Moving the code from LiveUser->login() to
ensure_user_account_is_active() so that internal and external logins
can use the same code. This means the check now will fall after
LiveUser->authenticate() so a user's lastlogin values will be updated.
but that should be ok as the login was successful, it's just they
can't go any further as their institution is not active.
behatnotneeded
Change-Id: Ie78a60978d5936f78af5a962ca3efdcdee148b93
Signed-off-by: Robert Lyon <email address hidden>
Reviewed: https:/ /reviews. mahara. org/6696 /git.mahara. org/mahara/ mahara/ commit/ 792fb47bdc4dbbb 058a2b5e6ac7dc9 483cb4be34
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: 15.10_STABLE
commit 792fb47bdc4dbbb 058a2b5e6ac7dc9 483cb4be34
Author: Robert Lyon <email address hidden>
Date: Fri Jul 8 09:05:53 2016 +1200
Bug 1580399: Stop users logging in to suspended/expired institutions
Moving the code from LiveUser->login() to user_account_ is_active( ) so that internal and external logins >authenticate( ) so a user's lastlogin values will be updated.
ensure_
can use the same code. This means the check now will fall after
LiveUser-
but that should be ok as the login was successful, it's just they
can't go any further as their institution is not active.
behatnotneeded
Change-Id: Ie78a60978d5936 f78af5a962ca3ef dcdee148b93
Signed-off-by: Robert Lyon <email address hidden>