change drop-and-create to update database

This commit is contained in:
2022-09-25 22:49:03 +02:00
parent b3b9a612ef
commit 68da72fe55
2 changed files with 4 additions and 3 deletions

View File

@@ -54,6 +54,7 @@ public class TokenRessource {
name = new String(Base64.decode(user), StandardCharsets.UTF_8);
}
} else {
String[] hash = new String(Base64.decode(auth.split(" ")[1]), StandardCharsets.UTF_8).split(":");
name = hash[0];
password = Hash.encryptSHA512(hash[1]);