thingspeak/app/controllers/passwords_controller.rb
2014-03-22 13:21:45 -04:00

17 lines
401 B
Ruby

class SessionsController < Devise::SessionsController
before_filter :fix_params, :only => :create
# don't modify default devise controllers
def create; super; end
def new; super; end
private
# fixes password reset params so that devise config.reset_password_keys can be set to email for activeadmin
def fix_params
params[:user][:login] = params[:user][:email]
end
end