Debugging.... password hash too long
This commit is contained in:
parent
700054f586
commit
f722a4db22
1 changed files with 2 additions and 0 deletions
|
@ -537,6 +537,8 @@ public class DatabaseRepository {
|
||||||
public int register(String pseudo, String email, String password, String firstname, String lastname,
|
public int register(String pseudo, String email, String password, String firstname, String lastname,
|
||||||
String description, String sgroup, String avatar) {
|
String description, String sgroup, String avatar) {
|
||||||
try {
|
try {
|
||||||
|
String pass = Password.hash(password).withArgon2().getResult();
|
||||||
|
System.out.println("pass("+pass.length()+") "+pass);
|
||||||
ensureConnection();
|
ensureConnection();
|
||||||
con.setAutoCommit(false);
|
con.setAutoCommit(false);
|
||||||
try (PreparedStatement playerStatement = con.prepareStatement(DatabaseQuery.REGISTER_QUERY.toString(),
|
try (PreparedStatement playerStatement = con.prepareStatement(DatabaseQuery.REGISTER_QUERY.toString(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue