Merge pull request #10562 from creative-commoners/pulls/4/depr-random

API Deprecate Member::create_new_password()
This commit is contained in:
Guy Sartorelli 2022-11-02 11:10:10 +13:00 committed by GitHub
commit 001e9c75d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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';