X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Flostpass.php;h=ecab0982c86d4f43a5d60e6dcbda724ffc547de2;hb=ae3d4f63a31c5a9f35c55e6507263a600867b55a;hp=d36d32963d6bc368907e24a504f51a820d2ab400;hpb=e86b8ef782c784b578740660078c3907a23a9da6;p=friendica.git
diff --git a/mod/lostpass.php b/mod/lostpass.php
index d36d32963d..ecab0982c8 100644
--- a/mod/lostpass.php
+++ b/mod/lostpass.php
@@ -1,4 +1,5 @@
internalRedirect();
}
- $pwdreset_token = Strings::getRandomName(12) . mt_rand(1000, 9999);
+ $pwdreset_token = Strings::getRandomName(12) . random_int(1000, 9999);
$fields = [
'pwdreset' => $pwdreset_token,
@@ -81,7 +82,6 @@ function lostpass_post(App $a)
function lostpass_content(App $a)
{
- $o = '';
if ($a->argc > 1) {
$pwdreset_token = $a->argv[1];
@@ -127,7 +127,6 @@ function lostpass_form()
function lostpass_generate_password($user)
{
$o = '';
- $a = get_app();
$new_password = User::generateNewPassword();
$result = User::updatePassword($user['uid'], $new_password);
@@ -141,7 +140,6 @@ function lostpass_generate_password($user)
'$lbl5' => '' . L10n::t('click here to login') . '.',
'$lbl6' => L10n::t('Your password may be changed from the Settings page after successful login.'),
'$newpass' => $new_password,
- '$baseurl' => System::baseUrl()
]);
info("Your password has been reset." . EOL);