2011 Posts in 1436 Topics by 620 members
|Go to End|
6 July 2012 at 9:52am Last edited: 6 July 2012 10:04am
I have a member profile edit page with a ConfirmedPasswordField that shows two fields to check the password. The problem is when a member visits this page to edit their profile, they see both password fields with long dotted passwords. I tried to hide that password value and show blank fields instead using this code:
$password = new ConfirmedPasswordField('Password',null,null,null,false);
$member->Password = '';
this works and shows blank password fields, but when I save the form without making any changes, the password get overridden and I can no longer login with the old password.
In this api page for the ConfirmedPasswordField class, somebody suggested to add $member->Password = ''; before $form>saveInto() and not calling writ(), but the write call() is already their under saveInto();
I just want to shows black fields for password instead of the long dotted value.. any help?
|Go to Top|