aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-03 13:00:19 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-03 13:00:19 +0000
commitf3ee4d82d0afd844c522a0f941d1fdfb1eb7e58e (patch)
treeacc5289489c145a4ad489842192151348a4c0783
parent26904c170562c3fccd4eacbcc552e1e53db7fd22 (diff)
downloadelgg-f3ee4d82d0afd844c522a0f941d1fdfb1eb7e58e.tar.gz
elgg-f3ee4d82d0afd844c522a0f941d1fdfb1eb7e58e.tar.bz2
Refs #311
git-svn-id: https://code.elgg.org/elgg/trunk@2168 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/sessions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index 15ec459d2..f6dbaa1a6 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -78,7 +78,7 @@
if ($user = get_user_by_username($credentials['username'])) {
// Let admins log in without validating their email, but normal users must have validated their email
- if ((!$user->admin) && (!$user->validated_email) && (!$user->admin_created))
+ if ((!$user->admin) && (!$user->validated) && (!$user->admin_created))
return false;
if ($user->password == generate_user_password($user, $credentials['password'])) {