commit | 01b0efc98c1665594d43b37fdda1ee85117dac76 | [log] [tgz] |
---|---|---|
author | Saša Živkov <zivkov@gmail.com> | Mon Feb 01 10:48:11 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Feb 01 10:48:11 2016 +0000 |
tree | e6f2e0817b79f119c94ee11415272d986379da78 | |
parent | a63b47b8d811bd387ccda7edd7d1405139bd44d2 [diff] | |
parent | da668db0184d503e568ddc9025e270a0f2216ed4 [diff] |
Merge "Respect auth.userNameToLowerCase"
diff --git a/src/main/java/com/googlesource/gerrit/plugins/cfoauth/AccessToken.java b/src/main/java/com/googlesource/gerrit/plugins/cfoauth/AccessToken.java index a9af673..9ea32ed 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/cfoauth/AccessToken.java +++ b/src/main/java/com/googlesource/gerrit/plugins/cfoauth/AccessToken.java
@@ -72,7 +72,7 @@ * Returns <code>true</code> if this token has already expired. */ boolean isExpired() { - return System.currentTimeMillis() > expiresAt * 1000; + return System.currentTimeMillis() / 1000L > expiresAt; } /**