Commit 7f4374a7 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Properly override sign_in_and_redirect with right arity

for `Devise::Controllers::Helpers#sign_in_and_redirect`,
which has arity of -2:
https://www.rubydoc.info/github/plataformatec/devise/Devise%2FControllers%2FHelpers:sign_in_and_redirect
parent d08aea1a
......@@ -6,7 +6,7 @@ module EE
extend ::Gitlab::Utils::Override
override :sign_in_and_redirect
def sign_in_and_redirect(user)
def sign_in_and_redirect(user, *args)
# The counter gets incremented in `sign_in_and_redirect`
show_ldap_sync_flash if user.sign_in_count == 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment