diff options
author | Yorhel <git@yorhel.nl> | 2010-01-26 19:02:19 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-01-26 19:29:00 +0100 |
commit | 5f5306216268e2bc97f7dccee24a9a8152553890 (patch) | |
tree | 8d273ee2ec55fd89f83a1dc5d47c1926284d9596 /lib/VNDB/Util/Auth.pm | |
parent | 363d4750f04806775513371b027f9460609eab1a (diff) |
Made a start on the notification system
The current setup should be able to handle all kinds of notifications,
though only PMs are implemented at this point. More to come.
Diffstat (limited to 'lib/VNDB/Util/Auth.pm')
-rw-r--r-- | lib/VNDB/Util/Auth.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Util/Auth.pm b/lib/VNDB/Util/Auth.pm index 19a58a0f..99434c3f 100644 --- a/lib/VNDB/Util/Auth.pm +++ b/lib/VNDB/Util/Auth.pm @@ -25,7 +25,7 @@ sub authInit { return _rmcookie($self) if length($cookie) < 41; my $token = substr($cookie, 0, 40); my $uid = substr($cookie, 40); - $self->{_auth} = $uid =~ /^\d+$/ && $self->dbUserGet(uid => $uid, session => $token, what => 'extended')->[0]; + $self->{_auth} = $uid =~ /^\d+$/ && $self->dbUserGet(uid => $uid, session => $token, what => 'extended notifycount')->[0]; return _rmcookie($self) if !$self->{_auth}; } @@ -95,7 +95,7 @@ sub _authCheck { return 0 if !$user || length($user) > 15 || length($user) < 2 || !$pass; - my $d = $self->dbUserGet(username => $user, what => 'extended')->[0]; + my $d = $self->dbUserGet(username => $user, what => 'extended notifycount')->[0]; return 0 if !defined $d->{id} || !$d->{rank}; if(_authEncryptPass($self, $pass, $d->{salt}) eq $d->{passwd}) { |