app/controllers/sessions_controller.rb
# Be sure to include AuthenticationSystem in Application Controller instead
Be sure to include AuthenticationSystem in Application Controller instead
Be sure to include AuthenticationSystem in Application Controller instead
def password_authentication(login, password, remember_me)
        user = User.authenticate(login, password)
        if user
            successful_login(user)
        else
            failed_login
        end
    end
def password_authentication ( login , password , remember_me ) user = User . authenticate ( login , password ) if user successful_login ( user ) else failed_login end end
Be sure to include AuthenticationSystem in Application Controller instead
Be sure to include AuthenticationSystem in Application Controller instead
login
<not_specific>
password
<not_specific>
remember_me
<not_specific>