Skip to content

Commit

Permalink
updated dao and login
Browse files Browse the repository at this point in the history
  • Loading branch information
paleomedia committed Apr 13, 2015
1 parent e174dc9 commit 71294c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dao.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@ public function saveBills ($id, $session, $title, $bill_id, $connection) {
return $bill_id;
}

} // end Dao
} // end Dao
?>
6 changes: 3 additions & 3 deletions login.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

try {
$dao = new Dao();
if ($dao - > check_login($name, $password)) {
if ($dao -> check_login($name, $password)) {
$_SESSION["name"] = $name;
$dao - > redirect("index.php", "Login successful! Welcome back, $name.");
$dao -> redirect("index.php", "Login successful! Welcome back, $name.");
}
else {
$dao - > redirect("index.php", "Incorrect user name and/or password.");
$dao -> redirect("index.php", "Incorrect user name and/or password.");
}
}
catch (Exception $e) {
Expand Down

0 comments on commit 71294c3

Please sign in to comment.