Skip to content
  • Robert Lyon's avatar
    Bug 1580399: Stop users logging in to suspended/expired institutions · ffad2513
    Robert Lyon authored
    
    
    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: default avatarRobert Lyon <robertl@catalyst.net.nz>
    ffad2513