From cdbb3a10eb954cefe2b5c8732b3afc20fb86244b Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Sat, 26 Nov 2022 19:06:45 +0000 Subject: [PATCH] Migrate to new default method for Argon2 Constructor. --- .../java/me/kavin/piped/server/handlers/auth/UserHandlers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/kavin/piped/server/handlers/auth/UserHandlers.java b/src/main/java/me/kavin/piped/server/handlers/auth/UserHandlers.java index 3719767..ad36481 100644 --- a/src/main/java/me/kavin/piped/server/handlers/auth/UserHandlers.java +++ b/src/main/java/me/kavin/piped/server/handlers/auth/UserHandlers.java @@ -25,7 +25,7 @@ import java.util.UUID; import static me.kavin.piped.consts.Constants.mapper; public class UserHandlers { - private static final Argon2PasswordEncoder argon2PasswordEncoder = new Argon2PasswordEncoder(); + private static final Argon2PasswordEncoder argon2PasswordEncoder = Argon2PasswordEncoder.defaultsForSpringSecurity_v5_8(); private static final BCryptPasswordEncoder bcryptPasswordEncoder = new BCryptPasswordEncoder(); public static byte[] registerResponse(String user, String pass) throws IOException {