Skip to content

Commit

Permalink
fix an issue w/ redirection on signup exp
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridauth committed Dec 2, 2011
1 parent 7bf4542 commit eddd672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/signin_signup/application/models/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function create( $email, $password, $first_name, $last_name){
}

function update( $user_id, $email, $password, $first_name, $last_name){
echo $sql = "UPDATE users SET email = '$email', password = '$password', first_name = '$first_name', last_name = '$last_name' WHERE id = '$user_id' LIMIT 1";
$sql = "UPDATE users SET email = '$email', password = '$password', first_name = '$first_name', last_name = '$last_name' WHERE id = '$user_id' LIMIT 1";

return mysql_query_excute($sql);
}
Expand All @@ -31,7 +31,7 @@ function find_by_email( $email ){
}

function find_by_email_and_password( $email, $password ){
echo $sql = "SELECT * FROM users WHERE email = '$email' AND password = '$password' LIMIT 1";
$sql = "SELECT * FROM users WHERE email = '$email' AND password = '$password' LIMIT 1";

$result = mysql_query_excute($sql);

Expand Down

0 comments on commit eddd672

Please sign in to comment.