/** * determines whether or not user logged in successfully. If true, * user is logged in. * @param type $password user entered password, which is compared to the * hashed password * @param type $login_array the results array from the valid user query * @return boolean returns true if logged in, false if not logged in */ private function logged_in($password, $login_array) { $pw_verified = Hash::verify_password_hash($password, $login_array['password']); $validated_user = $this->is_activated($login_array['activation']); if ($pw_verified && $validated_user) { return TRUE; } else { return FALSE; } }