class Warden::Strategies::Base

def successful?

Returns true only if the result is a success and a user was assigned.
def successful?
  @result == :success && !user.nil?
end