Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
M3DZIK committed May 23, 2024
1 parent c173f51 commit 2673185
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ class AuthController @Autowired constructor(
): Response {
fun preLoginDefaultResponse(): Response {
return ResponseHandler.generateResponse(
PreLoginResponse(

PreLoginResponse(
// Default Argon2 parameters
parallelism = 3,
memory = 65536,
iterations = 4,
// Server X5519 public key
serverPublicKey = ServerPublicKey.toHex()
)
)
))
}

consumeRateLimit(ip)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ class UserController @Autowired constructor(
owner = user.id,
newEmail = request.newEmail,
code = UUID.randomUUID().toString(),
codeExpiresAt =
Date.from(
codeExpiresAt = Date.from(
Calendar.getInstance().apply {
add(Calendar.HOUR, 24)
}.toInstant()
Expand Down

0 comments on commit 2673185

Please # to comment.