id); if(passwordValidate($pass = $_POST['password'])){ $password->password = password_hash($pass,PASSWORD_DEFAULT); $password->save(); header("location: ../../../Frontend/index.html?success=PasswordUpdated"); exit(); } }else{ header("location: ../../../Frontend/index.html?error=CouldNotUpdated"); exit(); } }else{ header("location: ../../../Frontend/index.html?error=NotLogin"); exit(); }