X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Feventz%2Freset_password.inc;h=ecaae400660b6cfb2f55e9104bd1b3c5dfe3c6a3;hb=8fc54d8f71a9ba9526cd396fe8f5c6f4764fb6c3;hp=ccea2ff63882d05e11d6c10d76f3eeb0bd441c83;hpb=d47273fea89327f93dcd55e48b8800ea2c2134d2;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/eventz/reset_password.inc b/wwwroot/inc/eventz/reset_password.inc index ccea2ff..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=resetPassword($login_id,$login,$vercode,$password1); + $error=nodes::resetPassword($login_id,$login,$vercode,$password1); + print "$error\n"; - $error="Password changed. Now you can login with your new password."; return 0; } ?>