summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/Auth.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-07-07 13:28:53 +0200
committerYorhel <git@yorhel.nl>2009-07-07 13:28:53 +0200
commitc281835ad2b538c6e1afbd3a4bffe440c011b51c (patch)
tree9b656d43e1f79bc272c0f2fd504f202bf366f809 /lib/VNDB/Util/Auth.pm
parent087b1697606292d945524af4f84ba5899749409e (diff)
Display thread count in user menu
This adds a small performance penalty, but should make it a lot easier for people to notice that someone is asking for his/her attention. Ideally, this count would be the number of *unread* *posts*, rather than *total* number of *threads*, but we don't store read the state (yet).
Diffstat (limited to 'lib/VNDB/Util/Auth.pm')
-rw-r--r--lib/VNDB/Util/Auth.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Util/Auth.pm b/lib/VNDB/Util/Auth.pm
index b520eeba..cb0751e9 100644
--- a/lib/VNDB/Util/Auth.pm
+++ b/lib/VNDB/Util/Auth.pm
@@ -84,7 +84,7 @@ sub _authCheck {
!$user || length($user) > 15 || length($user) < 2
|| !$pass || length($pass) != 32;
- my $d = $self->dbUserGet(username => $user, passwd => $pass)->[0];
+ my $d = $self->dbUserGet(username => $user, passwd => $pass, what => 'mymessages')->[0];
return 0 if !defined $d->{id} || !$d->{rank};
$self->{_auth} = $d;