diff --git a/src/main/scala/gitbucket/core/service/AccessTokenService.scala b/src/main/scala/gitbucket/core/service/AccessTokenService.scala index 2e25cc0..14cb0fa 100644 --- a/src/main/scala/gitbucket/core/service/AccessTokenService.scala +++ b/src/main/scala/gitbucket/core/service/AccessTokenService.scala @@ -27,9 +27,9 @@ 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,