API Deprecate unused / undesirable create_new_password implementation

This commit is contained in:
Damian Mooyman 2016-11-28 17:14:40 +13:00 committed by Sam Minnée
parent 27bca14f86
commit f16d7e1838

View File

@ -869,8 +869,10 @@ class Member extends DataObject implements TemplateGlobalProvider {
* filesystem. * filesystem.
* *
* @return string Returns a random password. * @return string Returns a random password.
* @deprecated 3.6.0..4.0.0
*/ */
public static function create_new_password() { public static function create_new_password() {
Deprecation::notice('4.0', 'Please use Security/lostpassword to reset a password');
$words = Config::inst()->get('Security', 'word_list'); $words = Config::inst()->get('Security', 'word_list');
if($words && file_exists($words)) { if($words && file_exists($words)) {