mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Allow custom ChangePasswordForm form
With this modification we can use Object::useCustomClass() to create a custom ChangePasswordForm form: Object::useCustomClass('ChangePasswordForm', 'CustomChangePasswordForm');
This commit is contained in:
parent
e3b6feba2a
commit
59be4a3be0
@ -671,7 +671,7 @@ class Security extends Controller {
|
|||||||
* @return Form Returns the lost password form
|
* @return Form Returns the lost password form
|
||||||
*/
|
*/
|
||||||
public function ChangePasswordForm() {
|
public function ChangePasswordForm() {
|
||||||
return new ChangePasswordForm($this, 'ChangePasswordForm');
|
return Object::create('ChangePasswordForm', $this, 'ChangePasswordForm');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user