Skip to content
Browse files

webservice MDL-20805 fix validuntil checking (token invalid when xxx …

…< time ())
  • Loading branch information...
1 parent 50256f9 commit 4ba8df5c1cd7d2551e6dbea91bdf803940b49f62 @mouneyrac mouneyrac committed Jan 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 webservice/lib.php
View
2 webservice/lib.php
@@ -160,7 +160,7 @@ protected function authenticate_user() {
throw new webservice_access_exception('Invalid token');
}
- if ($token->validuntil and $token->validuntil > time()) {
+ if ($token->validuntil and $token->validuntil < time()) {
throw new webservice_access_exception('Invalid token');
}

0 comments on commit 4ba8df5

Please sign in to comment.
Something went wrong with that request. Please try again.