Skip to content

Instantly share code, notes, and snippets.

@fabioperrella
Created July 14, 2014 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabioperrella/26155083c11d45c905e7 to your computer and use it in GitHub Desktop.
Save fabioperrella/26155083c11d45c905e7 to your computer and use it in GitHub Desktop.
logando no SMTP sem CAS
app/controllers/panel/base_controller.rb
# comentar linha abaixo
#before_filter :authenticate_user!, :require_account!, :check_if_enabled
before_filter :signin, :authenticate_user!, :require_account!, :check_if_enabled
#criar metodo abaixo
def signin
sign_in(User.first) if current_user.nil?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment