diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2011-11-05 15:06:38 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2011-11-05 15:06:38 -0700 |
commit | 16fc939c241daf21c9b2b6e02751f3ec39490690 (patch) | |
tree | 34610d5fd4e47a2b32fb7a107e25912f26f45e7b | |
parent | 4f36134942db927bf7e2e3e754240231435abf9b (diff) | |
download | pathery-16fc939c241daf21c9b2b6e02751f3ec39490690.tar.xz |
re-login displayName fix.
-rw-r--r-- | pages/login.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pages/login.php b/pages/login.php index 1c16fe8..fc62e93 100644 --- a/pages/login.php +++ b/pages/login.php @@ -40,7 +40,7 @@ try { require './includes/db.inc.php';
//Unless I already have this information...
//* Modify this to WHERE `email`
- $sql = "SELECT `ID`, `isAdmin`, `openID` FROM `users` WHERE `email` = '$email'";
+ $sql = "SELECT `ID`, `isAdmin`, `openID`, `displayName` FROM `users` WHERE `email` = '$email'";
//$sql = "SELECT `ID`, `isAdmin` FROM `users` WHERE `openID` = '$claimedid'";
$result = mysql_query($sql);
@@ -53,6 +53,9 @@ try { if (mysql_result($result, 0, 'isAdmin') == 1)
$_SESSION['isAdmin'] = true;
+ //Use the displayname we have on record.
+ $display = mysql_result($result, 0, 'displayName');
+
//TEMPORARY CODE
//Check openID; and update it if necessary
if (mysql_result($result, 0, 'openID') == $claimedid) {
|