save a URI with the user

This commit is contained in:
Evan Prodromou 2010-09-22 12:08:17 -04:00
parent b5cfcba471
commit 4d01f8fbb6
1 changed files with 7 additions and 1 deletions

View File

@ -282,7 +282,13 @@ class User extends Memcached_DataObject
}
$user->id = $id;
$user->uri = common_user_uri($user);
if (!empty($uri)) {
$user->uri = $uri;
} else {
$user->uri = common_user_uri($user);
}
if (!empty($password)) { // may not have a password for OpenID users
$user->password = common_munge_password($password, $id);
}