From f16d7e1838d834575738086326d1191db3a5cfd8 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Mon, 28 Nov 2016 17:14:40 +1300 Subject: [PATCH] API Deprecate unused / undesirable create_new_password implementation --- security/Member.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security/Member.php b/security/Member.php index 8a6f6a69c..a3b3bce6d 100644 --- a/security/Member.php +++ b/security/Member.php @@ -869,8 +869,10 @@ class Member extends DataObject implements TemplateGlobalProvider { * filesystem. * * @return string Returns a random password. + * @deprecated 3.6.0..4.0.0 */ public static function create_new_password() { + Deprecation::notice('4.0', 'Please use Security/lostpassword to reset a password'); $words = Config::inst()->get('Security', 'word_list'); if($words && file_exists($words)) {