Andy,

This is how, I have approached this situation.

1. create a psuedo column in userTO named new_password & confirm_password.
2. Create getter & setters for these columns in UserRecord object.
3. On your action event handler, create the Reactor's record object by
calling the init method. In the init method call the above setters..
4. Now in your userValidator, you will have access to old and new passwords.

HTH


On 3/18/07, Andy Jarrett <[EMAIL PROTECTED]> wrote:

Hi all

Im sitting here, and I am a litttle stuck on how best to implement
password validation for a modelglue app when a user want to update
their details.

For example, I want an "update password page" with three fields,
oldpassword, confirmpassword, and newpassword. The field in the
database is simply called 'password'

What I cannot envision at this point is how to pass my three password
fields to the validator cfc and run the following checks
1. Check old password matches whats in the DB already
2. newpassword = confirmpassword
3. password strength

From there I want to pass this back (if no errors) and save()

any help/direction would be great

Cheers, Andy


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --




--
Qasim Rasheed
Certified Advance ColdFusion MX Developer
(IM qasimrasheed AT yahoo, msn or GTalk)


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to