X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flostpass.php;h=455a9b1e2eed697580cd17fb8e4dcfe2b53da43d;hb=5b7c8d86311b847c2a4a89c465ae1c510a58be7b;hp=7a927d05aff2ac897040b500e243a4414b976868;hpb=5a6da8b447430174ae231a3b8203fd4bd8416cc1;p=friendica.git diff --git a/mod/lostpass.php b/mod/lostpass.php index 7a927d05af..455a9b1e2e 100644 --- a/mod/lostpass.php +++ b/mod/lostpass.php @@ -7,7 +7,7 @@ require_once('include/text.php'); function lostpass_post(App $a) { $loginame = notags(trim($_POST['login-name'])); - if (! $loginame) + if(! $loginame) goaway(z_root()); $r = q("SELECT * FROM `user` WHERE ( `email` = '%s' OR `nickname` = '%s' ) AND `verified` = 1 AND `blocked` = 0 LIMIT 1", @@ -31,7 +31,7 @@ function lostpass_post(App $a) { dbesc($new_password_encoded), intval($uid) ); - if ($r) + if($r) info( t('Password reset request issued. Check your email.') . EOL); @@ -79,7 +79,8 @@ function lostpass_post(App $a) { function lostpass_content(App $a) { - if (x($_GET,'verify')) { + + if(x($_GET,'verify')) { $verify = $_GET['verify']; $hash = hash('whirlpool', $verify);