diff --git a/src/Security/Member.php b/src/Security/Member.php index 83785910e..6fb7a2f36 100644 --- a/src/Security/Member.php +++ b/src/Security/Member.php @@ -828,9 +828,12 @@ class Member extends DataObject * 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 3a57af17e..d321b16a0 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';