mirror of https://github.com/BOINC/boinc.git
Fix oversight in David's checkin
svn path=/trunk/boinc/; revision=8883
This commit is contained in:
parent
b803f9b432
commit
82bfb01de4
|
@ -18,7 +18,7 @@ $user = lookup_user_email_addr($email_addr);
|
|||
|
||||
// if no password set, make it the account key
|
||||
//
|
||||
if (!strlen($user->passwd_hash)) {
|
||||
if ($user && !strlen($user->passwd_hash)) {
|
||||
$user->passwd_hash = md5($user->authenticator.$user->email_addr);
|
||||
mysql_query("update user set passwd_hash='$user->passwd_hash' where id=$user->id");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue