class Object
Public Instance Methods
authenticate!()
click to toggle source
# File lib/hatrack/concert/warden.rb, line 14 def authenticate! u = User.authenticate(params["email"], params["password"]) if u.nil? fail!("Could not log in") else success!(u) end end
valid?()
click to toggle source
# File lib/hatrack/concert/warden.rb, line 10 def valid? params["email"] || params["password"] end