Commit b0617c91 authored by James Edwards-Jones's avatar James Edwards-Jones
Browse files

Backport IdentityLinker#failed? from GroupSaml callback flow

parent 348d1e41cfd2
......@@ -82,7 +82,7 @@ def omniauth_flow(auth_module, identity_linker: nil)
if identity_linker.changed?
redirect_identity_linked
elsif identity_linker.error_message.present?
elsif identity_linker.failed?
redirect_identity_link_failed(identity_linker.error_message)
else
redirect_identity_exists
......
......@@ -17,6 +17,10 @@ def changed?
@changed
end
def failed?
error_message.present?
end
def error_message
identity.validate
......
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