X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Feventz%2Freset_password.inc;h=ecaae400660b6cfb2f55e9104bd1b3c5dfe3c6a3;hb=HEAD;hp=2e5f45bf630da12e13606884864a3110f48636f2;hpb=da684784e14b7001b61ddb1be865cb3271736dcf;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/eventz/reset_password.inc b/wwwroot/inc/eventz/reset_password.inc index 2e5f45b..ecaae40 100644 --- a/wwwroot/inc/eventz/reset_password.inc +++ b/wwwroot/inc/eventz/reset_password.inc @@ -9,28 +9,31 @@ function reset_password() { if ($login == '') { $error="Please enter name or id"; + print "$error"; return false; } if ($password1 == '' || $password2 == '') { $error="Please enter password"; + print "$error"; return false; } if ($password1 != $password2) { $error = "The two passwords that you entered do not match."; + print "$error"; return false; } - if ($login_type = 'id') { + if ($login_type == 'id') { $login_id=$login; $login=''; } else { $login_id=0; } $error=nodes::resetPassword($login_id,$login,$vercode,$password1); + print "$error\n"; - $error="Password changed. Now you can login with your new password."; return 0; } ?>