Author: jfthomps
Date: Thu Apr 8 14:10:04 2010
New Revision: 931950
URL: http://svn.apache.org/viewvc?rev=931950&view=rev
Log:
VCL-299
VCL-300
modified updateShibUser to update the user with a matching id instead of uid,
and to not update the emailnotices field
thanks to Sean Dilda for reporting these and showing what in the code needed to
be corrected
Modified:
incubator/vcl/trunk/web/.ht-inc/authmethods/shibauth.php
Modified: incubator/vcl/trunk/web/.ht-inc/authmethods/shibauth.php
URL:
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/authmethods/shibauth.php?rev=931950&r1=931949&r2=931950&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/authmethods/shibauth.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/authmethods/shibauth.php Thu Apr 8
14:10:04 2010
@@ -90,9 +90,8 @@ function updateShibUser($userid) {
$email = mysql_escape_string($user['email']);
$query .= "email = '$email', ";
}
- $query .= "emailnotices = 0, "
- . "lastupdated = NOW() "
- . "WHERE uid = {$user['id']}";
+ $query .= "lastupdated = NOW() "
+ . "WHERE id = {$user['id']}";
doQuery($query, 101, 'vcl', 1);
return $user;
}