API Deprecate Member::create_new_password()

This commit is contained in:
Steve Boyd 2022-11-02 10:08:27 +13:00
parent e323fe478e
commit 9091d64652
2 changed files with 5 additions and 0 deletions

View File

@ -828,9 +828,12 @@ class Member extends DataObject
* filesystem. * filesystem.
* *
* @return string Returns a random password. * @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() 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'); $words = Security::config()->uninherited('word_list');
if ($words && file_exists($words ?? '')) { if ($words && file_exists($words ?? '')) {

View File

@ -88,6 +88,8 @@ class Security extends Controller implements TemplateGlobalProvider
* *
* @config * @config
* @var string * @var string
*
* @deprecated 4.12 Will be removed without equivalent functionality to replace it
*/ */
private static $word_list = './wordlist.txt'; private static $word_list = './wordlist.txt';