summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/rddb.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rddb.pm b/lib/rddb.pm
index 226c415..7a885be 100755
--- a/lib/rddb.pm
+++ b/lib/rddb.pm
@@ -68,7 +68,7 @@ sub check_token
return (undef, 'ERROR', "user '" . $username . "' not known by rivendell")
}
- if($token_result == $token) {
+ if($token_result eq $token) {
return (1, 'OK', 'success');
}
return (0, 'ERROR', "wrong password");