Displaying 2 results from an estimated 2 matches for "failed_login".
2008 Aug 30
3
Working with sessions in beast forum
...s[:password]
end
end
protected
def open_id_authentication
authenticate_with_open_id params[:openid_url] do |result,
openid_url|
if result.successful?
if self.current_user = User.find_by_openid_url(openid_url)
successful_login
else
failed_login "Sorry, no user by the identity URL
{openid_url} exists"[:openid_no_user_message, openid_url.inspect]
end
else
failed_login result.message
end
end
end
def password_authentication(name, password)
if self.current_user = User.authentic...
2008 May 27
6
case...when statement bug when using openid_authentication?
...ity_url,
registration|
logger.debug "Received status #{status.inspect}"
if (status === :successful)
logger.debug "We got a successful answer"
end
case status
when :missing
logger.debug "Missing!"
failed_login "Sorry, the OpenID server couldn''t be found"
when :canceled
logger.debug "Canceled!"
failed_login "OpenID verification was canceled"
when :failed
logger.debug "Failed!"
failed_login "Sorry,...