Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A better way handle Omniauth identity failed logins
OmniAuth.config.on_failure = -> env do
env[ActionDispatch::Flash::KEY] ||=
env[ActionDispatch::Flash::KEY][:error] = "Either your email or password was not recognised. Please try again."
SessionsController.action(:new).call(env) #call whatever controller/action that displays your signup form

This comment has been minimized.

Copy link

ariffmunshi commented Jun 28, 2014

How would you edit this to work as Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.