From 59be4a3be0c774e28584b81ad1953561b2b23d85 Mon Sep 17 00:00:00 2001 From: Josua2012 Date: Mon, 6 May 2013 19:31:30 +0200 Subject: [PATCH] Allow custom ChangePasswordForm form With this modification we can use Object::useCustomClass() to create a custom ChangePasswordForm form: Object::useCustomClass('ChangePasswordForm', 'CustomChangePasswordForm'); --- security/Security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Security.php b/security/Security.php index f0994b6b1..bc012bcff 100644 --- a/security/Security.php +++ b/security/Security.php @@ -671,7 +671,7 @@ class Security extends Controller { * @return Form Returns the lost password form */ public function ChangePasswordForm() { - return new ChangePasswordForm($this, 'ChangePasswordForm'); + return Object::create('ChangePasswordForm', $this, 'ChangePasswordForm'); } /**