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:
Josua2012 2013-05-06 19:31:30 +02:00 committed by Ingo Schommer
parent e3b6feba2a
commit 59be4a3be0

View File

@ -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');
} }
/** /**