[Catalyst] What is correct way to re-check user password for authenticated user?

2009-08-25 Thread Oleg Kostyuk
Hello subscribers, On some pages I need to re-check user password (to be more concrete - each time when user change any settings on user settings page). I can't compare passwords directly (something like: $form-{password} eq $c-user-password()), because in DB I have only hashed passwords. Seems

Re: [Catalyst] What is correct way to re-check user password for authenticated user?

2009-08-25 Thread Matt Whipple
Oleg Kostyuk wrote: Hello subscribers, On some pages I need to re-check user password (to be more concrete - each time when user change any settings on user settings page). I can't compare passwords directly (something like: $form-{password} eq $c-user-password()), because in DB I have only

Re: [Catalyst] What is correct way to re-check user password for authenticated user?

2009-08-25 Thread Jason Galea
Oleg Kostyuk wrote: Hello subscribers, On some pages I need to re-check user password (to be more concrete - each time when user change any settings on user settings page). I can't compare passwords directly (something like: $form-{password} eq $c-user-password()), because in DB I have only

Re: [Catalyst] What is correct way to re-check user password for authenticated user?

2009-08-25 Thread Tomas Doran
On 26 Aug 2009, at 00:50, Matt Whipple wrote: Seems that I can try to authenticate user again, by calling $c-authenticate(name=$c-user-name, pass=$form-{password}), but I concerned is this acceptable - calling authenticate, when user is already authenticated. And what will be if provided