Skip to content

Commit

Permalink
Merge pull request #10562 from creative-commoners/pulls/4/depr-random
Browse files Browse the repository at this point in the history
API Deprecate Member::create_new_password()
  • Loading branch information
GuySartorelli authored Nov 1, 2022
2 parents e323fe4 + 9091d64 commit 001e9c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Security/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? '')) {
Expand Down
2 changes: 2 additions & 0 deletions src/Security/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 001e9c7

Please sign in to comment.