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.
*
* @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 ?? '')) {

View File

@ -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';