summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-11 11:12:13 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-11 11:12:13 +0000
commit7dd0d859e1a0389dde0d6f5e7c129864365f61cc (patch)
treed8d56eed88405d815c3194d32d62dfcc088e71df /modules/user/user.module
parent995f079e1e9fa9582bda98b667eab94068703dd7 (diff)
downloadbrdo-7dd0d859e1a0389dde0d6f5e7c129864365f61cc.tar.gz
brdo-7dd0d859e1a0389dde0d6f5e7c129864365f61cc.tar.bz2
- Patch #497612 by moshe weitzman, Stevel: harden user login - move user_load() to submit handler.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 8c11e64d1..7ce2e6ac8 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -2114,8 +2114,8 @@ function user_login_submit($form, &$form_state) {
* populated and login tasks are performed.
*/
function user_external_login_register($name, $module) {
- $account = user_load_by_name($name);
- if (!$account->uid) {
+ $account = user_external_load($name);
+ if (!$account) {
// Register this new user.
$userinfo = array(
'name' => $name,