• Robert Speicher's avatar
    Merge branch 'rs-fix-ldap-2fa-login' into 'master' · 00cae51e
    Robert Speicher authored
    Fix 2FA-based login for LDAP users
    
    The OTP input form is shared by both LDAP and standard logins, but when
    coming from an LDAP-based form, the form parameters aren't nested in a
    Hash based on the `resource_name` value.
    
    Now we check for a nested `remember_me` parameter and use that if it
    exists, or fall back to the non-nested parameters if it doesn't.
    
    Somewhat confusingly, the OTP input form _does_ nest parameters under
    the `resource_name`, regardless of what type of login we're coming from,
    so that allows everything else to work as normal.
    
    Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/18185
    
    See merge request !4493
    00cae51e
To find the state of this project's repository at the time of any of these versions, check out the tags.
CHANGELOG 144 KB