$success =false;// validate username and password$user = DataAccess::GetUserByUsernameAndPassword($username, $password);if(!$user) { $errorMessage ="Invalid username and/or password."; }else{ $map =newMap(); $map->ID = $mapInfo["ID"]; $map->UserID = $user->ID; $map->Category...
$db =newDB_Functions();// json response array$response =array("error"=>FALSE);if(isset($_POST['username']) &&isset($_POST['password'])) {// receiving the post params$username = $_POST['username']; $password = $_POST['password'];// get the user by email and password$user = ...
$oldPasswordHash = hash_pbkdf2('sha256', $_POST['old_password'], $passwordSalt, SecurityConfig::N_PASSWORD_HASH_ITERATIONS);//If the old password is incorrect, show an errorif($_SESSION['Stippers']['ChangePassword']['user']->passwordHash != $oldPasswordHash) { ChangePasswordController...