1
1
/*
2
2
* |
3
3
* ||
4
- * |||||| ||||||||| |||||||| ||||||||| ||||||| ||| ||| ||||||| ||||||||| |||||| ||||||||
4
+ * |||||| ||||||||| |||||||| ||||||||| ||||||| ||| ||| ||||||| ||||||||| |||||| |||||||||
5
5
* ||| || ||| || || ||| ||| || || ||| |||
6
6
* ||| |||||||| ||| |||||||| |||||| |||||||| |||||| |||||||| ||| |||
7
7
* ||| ||| ||| ||| ||| ||| ||| ||| ||| || || ||| ||| ||| |||
13
13
* Powered By Truncheon Core
14
14
*/
15
15
16
+ /*
17
+ * This file is part of the Cataphract project.
18
+ * Copyright (C) 2024 DAK404 (https://github.com/DAK404)
19
+ *
20
+ * This program is free software; you can redistribute it and/or modify
21
+ * it under the terms of the GNU General Public License as published by
22
+ * the Free Software Foundation; either version 2 of the License, or
23
+ * (at your option) any later version.
24
+ *
25
+ * This program is distributed in the hope that it will be useful,
26
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
+ * GNU General Public License for more details.
29
+ *
30
+ * You should have received a copy of the GNU General Public License
31
+ * along with this program; if not, write to the Free Software Foundation, Inc.,
32
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33
+ */
34
+
16
35
package Cataphract .API .Dragon ;
17
36
18
37
import java .io .Console ;
@@ -285,7 +304,7 @@ private final boolean setAccountUsername()throws Exception
285
304
286
305
// set the value of the account username
287
306
_newAccountUsername = (console .readLine (_accountUsernamePolicy + "Account Username> " ));
288
-
307
+
289
308
// Check if the entered username adheres to the policy set
290
309
if (_newAccountUsername == null || _newAccountUsername .equals ("" ) || _newAccountUsername .equalsIgnoreCase ("Administrator" ))
291
310
{
@@ -294,7 +313,7 @@ private final boolean setAccountUsername()throws Exception
294
313
}
295
314
else
296
315
{
297
- _newAccountUsername = Cryptography .stringToSHA3_256 (_newAccountUsername );
316
+ _newAccountUsername = Cryptography .stringToSHA3_256 (_newAccountUsername );
298
317
299
318
// check if the entered username exists in the database already
300
319
if (new Login (_newAccountUsername ).checkUserExistence ())
@@ -309,7 +328,7 @@ private final boolean setAccountUsername()throws Exception
309
328
status = true ;
310
329
}
311
330
}
312
-
331
+
313
332
// return the status
314
333
return status ;
315
334
}
0 commit comments