Merge pull request #525 from openclassify/vedat

#1320 random password update
This commit is contained in:
Fatih Alp 2020-04-27 04:50:33 +03:00 committed by GitHub
commit 11b8616e0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ class ForgotPassFormHandler
}
if ($builder->getPostData()['resetType'] == "sms") {
$user = $users->find($user->id);
$password = str_random(8);
$password = rand(000000,999999);
$user->setAttribute('password', $password);
$users->save($user);
if (!is_null($user->gsm_phone)) {