diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-22 22:33:50 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-22 22:33:50 +0000 |
commit | 77537c157df1ca44a2e8f375c04c31580eb89954 (patch) | |
tree | 13e43d000686102505bb04a9de1113b8ea42d9d9 /mod/uservalidationbyemail/start.php | |
parent | 24378b3ecc07eb568e383823967a0ae6378120d6 (diff) | |
download | elgg-77537c157df1ca44a2e8f375c04c31580eb89954.tar.gz elgg-77537c157df1ca44a2e8f375c04c31580eb89954.tar.bz2 |
testing for the existence of username in pam credentials before using
git-svn-id: http://code.elgg.org/elgg/trunk@7907 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/uservalidationbyemail/start.php')
-rw-r--r-- | mod/uservalidationbyemail/start.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/uservalidationbyemail/start.php b/mod/uservalidationbyemail/start.php index 9d4233f37..d04adcf4d 100644 --- a/mod/uservalidationbyemail/start.php +++ b/mod/uservalidationbyemail/start.php @@ -122,8 +122,11 @@ function uservalidationbyemail_allow_new_user_can_edit($hook, $type, $value, $pa */ function uservalidationbyemail_check_auth_attempt($credentials) { + if (!isset($credentials['username'])) { + return; + } + $username = $credentials['username']; - $password = $credentials['password']; // See if the user exists and isn't validated $access_status = access_get_show_hidden_status(); |