Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Commit

Permalink
There should never be more than one token
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-M committed Feb 16, 2017
1 parent bbca6c8 commit 0b6e3c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static String remoteIp(HttpServletRequest request) {
// TODO use sproc
public boolean isValidToken(String token, String bindIp, String sessionId) {
List<OnetimeTokenInfo> result = oneTimeTokenSProcService.bindOnetimeToken(token, bindIp, sessionId);
return result.size() > 0 ? true : false;
return result.size() == 1 ? true : false;
}

public void deleteCookiesIfExistent(HttpServletRequest request, HttpServletResponse response) {
Expand Down

0 comments on commit 0b6e3c6

Please sign in to comment.