reset_passwod final fix
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / reset_password.inc
index 883b7b86b75b5e59be1e006a6805aea9b631e927..ecaae400660b6cfb2f55e9104bd1b3c5dfe3c6a3 100644 (file)
@@ -9,16 +9,19 @@ 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;
        }
 
@@ -29,8 +32,8 @@ function reset_password() {
                $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;
 }
 ?>
This page took 0.12941 seconds and 4 git commands to generate.