Displaying 1 result from an estimated 1 matches for "active_login_key".
2008 Aug 30
3
Working with sessions in beast forum
...User.authenticate(name, password)
successful_login
else
failed_login "Invalid login or password, try again
please."[:invalid_login_message]
end
end
def successful_login
cookies[:login_token] = {:value =>
"#{current_user.id};#{current_user.active_login_key}", :expires =>
1.year.from_now.utc} if params[:remember_me] == "1"
redirect_to CGI.unescape(params[:to] || home_path)
end
end
If anyone could help, I''d really appreciate it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because...