Commit 7dd0d859 authored by Dries's avatar Dries

- Patch #497612 by moshe weitzman, Stevel: harden user login - move user_load() to submit handler.

parent 995f079e
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment