mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API Deprecate Member::create_new_password()
This commit is contained in:
parent
e323fe478e
commit
9091d64652
@ -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 ?? '')) {
|
||||||
|
@ -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';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user