mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Using PasswordField instead of deprecated EncryptField
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64427 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
80b5bfd4d2
commit
692bd4c835
@ -23,11 +23,11 @@ class ChangePasswordForm extends Form {
|
||||
if(!$fields) {
|
||||
$fields = new FieldSet();
|
||||
if(Member::currentUser() && (!isset($_REQUEST['h']) || !Member::member_from_autologin($_REQUEST['h']))) {
|
||||
$fields->push(new EncryptField("OldPassword",_t('Member.YOUROLDPASSWORD', "Your old password")));
|
||||
$fields->push(new PasswordField("OldPassword",_t('Member.YOUROLDPASSWORD', "Your old password")));
|
||||
}
|
||||
|
||||
$fields->push(new EncryptField("NewPassword1", _t('Member.NEWPASSWORD', "New Password")));
|
||||
$fields->push(new EncryptField("NewPassword2", _t('Member.CONFIRMNEWPASSWORD', "Confirm New Password")));
|
||||
$fields->push(new PasswordField("NewPassword1", _t('Member.NEWPASSWORD', "New Password")));
|
||||
$fields->push(new PasswordField("NewPassword2", _t('Member.CONFIRMNEWPASSWORD', "Confirm New Password")));
|
||||
}
|
||||
if(!$actions) {
|
||||
$actions = new FieldSet(
|
||||
|
@ -52,7 +52,7 @@ class MemberLoginForm extends LoginForm {
|
||||
new HiddenField("AuthenticationMethod", null, $this->authenticator_class, $this),
|
||||
new TextField("Email", _t('Member.EMAIL'),
|
||||
Session::get('SessionForms.MemberLoginForm.Email'), null, $this),
|
||||
new EncryptField("Password", _t('Member.PASSWORD'), null, $this)
|
||||
new PasswordField("Password", _t('Member.PASSWORD'), null, $this)
|
||||
);
|
||||
if(Security::$autologin_enabled) {
|
||||
$fields->push(new CheckboxField(
|
||||
|
Loading…
x
Reference in New Issue
Block a user