Skip to content

Instantly share code, notes, and snippets.

@bertomartin
Forked from cbetta/gist:2006770
Created June 6, 2013 19:14
Show Gist options
  • Save bertomartin/5724097 to your computer and use it in GitHub Desktop.
Save bertomartin/5724097 to your computer and use it in GitHub Desktop.
OmniAuth.config.on_failure = -> env do
env[ActionDispatch::Flash::KEY] ||= ActionDispatch::Flash::FlashHash.new
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
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment