Using the authenticate method on an authenticated user
Hello. I am trying to use the authenticate method to determine if a user is entering the same password as the one they currently have. I have a form that allows the user to change their password. So, after the user authenticates(i.e. starts a Zope session), they navigate to this form and type in their new password. After the form is submitted but before changing the user's password, I would like to check if the password they are entering is different from the one they currently have. If it is not, I redirect them to another page informing them that they have to enter another password. To check if the password the user has entered matches their current password, I use the following statement in a DTML method: <dtml-if expr "acl_users.getUser(name).authenticate(password, REQUEST)"> However, using this statement gives me an error that reads the following: Error Type: Unauthorized Error Value: The container has no security assertions. Access to 'authenticate' of rwolf denied. I have no idea why I am getting this error. Any help would be greatly appreciated. Thanks. -Asad __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com
participants (1)
-
Asad Habib