You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix a bug where login attempts remaining was not reset
* added garbage collector explicitly to avoid memory spiking for some reason after locking and unlocking console.
* Added assert in script mode to check if a script is called by an already running script (and denies execution)
* Activate script functionality
* Fix logic for correct policy checking
* Update build information
* Fix strings to be uniform across various modules
* Add feature to list all users during account modification and deletion in Login class
* Add the feature to delete an account using the user hash
* Remove win95/98 easter egg :(
* Add banner to SycoraxKernel class
* Add string builder to reduce memory footprint
IOStreams.printError("User does not exist! Please enter a valid username.");
157
-
else
158
+
IOStreams.printError("Deletion of Administrator Account is not allowed!");
159
+
else
158
160
{
159
-
try
161
+
if (! newLogin(Cryptography.stringToSHA3_256(username)).checkUserExistence() || ! newLogin(username).checkUserExistence())
162
+
{
163
+
IOStreams.println("User does not exist! Please enter the correct username (or the username hash) to continue");
164
+
}
165
+
else
160
166
{
161
-
// Prompt user for confirmation
162
-
if (console.readLine("Are you sure you wish to delete user account \"" + newLogin(username).getNameLogic() + "\"? [ YES | NO ]\n> ").equalsIgnoreCase("yes"))
167
+
try
163
168
{
164
-
// Delete account from database and directories
165
-
status = deleteFromDatabase() & deleteDirectories(newFile("./Users/Cataphract/" + username));
if (console.readLine("Are you sure you wish to delete user account \"" + newLogin(username).getNameLogic() + "\"? [ YES | NO ]\n> ").equalsIgnoreCase("yes"))
169
171
{
170
-
//wait for 5 seconds and then restart
171
-
Thread.sleep(5000);
172
-
System.exit(211);
172
+
// Delete account from database and directories
173
+
status = deleteFromDatabase() & deleteDirectories(newFile("./Users/Cataphract/" + username));
0 commit comments