diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-15 02:43:54 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-15 02:43:54 +0000 |
commit | 481a5ecfe6b17836d47b8c89eabf346f941bbc3b (patch) | |
tree | 8ac3ce6d4ef99b0365b715f311362987eee2d783 /engine/classes/ElggPAM.php | |
parent | f912c8e793ba1140dab7507c21afc3d917d815d7 (diff) | |
download | elgg-481a5ecfe6b17836d47b8c89eabf346f941bbc3b.tar.gz elgg-481a5ecfe6b17836d47b8c89eabf346f941bbc3b.tar.bz2 |
Fixes #1417 Users get notified when their accounts are not validated for any authentication attempt
git-svn-id: http://code.elgg.org/elgg/trunk@7319 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggPAM.php')
-rw-r--r-- | engine/classes/ElggPAM.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/classes/ElggPAM.php b/engine/classes/ElggPAM.php index a3e4f9a77..37436fba3 100644 --- a/engine/classes/ElggPAM.php +++ b/engine/classes/ElggPAM.php @@ -52,9 +52,10 @@ class ElggPAM { try { // Execute the handler - if ($handler($credentials)) { + $result = $handler($credentials); + if ($result) { $authenticated = true; - } else { + } elseif ($result === false) { if ($importance == 'required') { $this->messages['required'][] = "$handler:failed"; return false; |