From 9091d64652540474092b04b6bb6dee08195e9a1b Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 2 Nov 2022 10:08:27 +1300 Subject: [PATCH] API Deprecate Member::create_new_password() --- src/Security/Member.php | 3 +++ src/Security/Security.php | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/Security/Member.php b/src/Security/Member.php index 83785910ef9..6fb7a2f3635 100644 --- a/src/Security/Member.php +++ b/src/Security/Member.php @@ -828,9 +828,12 @@ public static function currentUserID() * filesystem. * * @return string Returns a random password. + * + * @deprecated 4.12.0 Will be removed without equivalent functionality to replace it */ public static function create_new_password() { + Deprecation::notice('4.12.0', 'Will be removed without equivalent functionality to replace it'); $words = Security::config()->uninherited('word_list'); if ($words && file_exists($words ?? '')) { diff --git a/src/Security/Security.php b/src/Security/Security.php index 3a57af17ef1..d321b16a084 100644 --- a/src/Security/Security.php +++ b/src/Security/Security.php @@ -88,6 +88,8 @@ class Security extends Controller implements TemplateGlobalProvider * * @config * @var string + * + * @deprecated 4.12 Will be removed without equivalent functionality to replace it */ private static $word_list = './wordlist.txt';