change drop-and-create to update database
This commit is contained in:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user