]> git.mxchange.org Git - friendica.git/blobdiff - mod/lostpass.php
Merge pull request #7988 from friendica/MrPetovan-notice
[friendica.git] / mod / lostpass.php
index 548cea185cb943ac3c3f1e7cda039045f7514b12..ecab0982c86d4f43a5d60e6dcbda724ffc547de2 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * @file mod/lostpass.php
  */
@@ -27,7 +28,7 @@ function lostpass_post(App $a)
                $a->internalRedirect();
        }
 
-       $pwdreset_token = Strings::getRandomName(12) . mt_rand(1000, 9999);
+       $pwdreset_token = Strings::getRandomName(12) . random_int(1000, 9999);
 
        $fields = [
                'pwdreset' => $pwdreset_token,
@@ -139,7 +140,6 @@ function lostpass_generate_password($user)
                        '$lbl5'    => '<a href="' . System::baseUrl() . '">' . L10n::t('click here to login') . '</a>.',
                        '$lbl6'    => L10n::t('Your password may be changed from the <em>Settings</em> page after successful login.'),
                        '$newpass' => $new_password,
-                       '$baseurl' => System::baseUrl()
                ]);
 
                info("Your password has been reset." . EOL);