This commit is contained in:
Naoki Takezoe
2017-03-10 10:03:33 +09:00
parent c5a5c737bf
commit a684fa8a8e

View File

@@ -27,9 +27,9 @@ trait AccessTokenService {
do {
token = makeAccessTokenString
hash = tokenToHash(token)
//} while (AccessTokens.filter(_.tokenHash === hash.bind).exists.run)
} while (AccessTokens.filter(_.tokenHash === hash.bind).exists.run)
hash = tokenToHash(token)
} while (AccessTokens.filter(_.tokenHash === hash.bind).exists.run)
val newToken = AccessToken(
userName = userName,
note = note,