Displaying 1 result from an estimated 1 matches for "openid_no_user_message".
2008 Aug 30
3
Working with sessions in beast forum
...ticate_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.authenticate(name, password)
successful_login
else
failed_login "Invalid...