Skip to content
Snippets Groups Projects
Commit 00d8d192 authored by Tim Miller's avatar Tim Miller
Browse files

BUGFIX: Make sure that ADMIN account is initialised correctly.

parent 4ec7f52e
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,7 @@ public class FotBot ...@@ -56,6 +56,7 @@ public class FotBot
* Constructs a new FotBot server with no users * Constructs a new FotBot server with no users
*/ */
public FotBot() public FotBot()
throws DuplicateUserException, InvalidUsernameException, InvalidPasswordException
{ {
passwords = new HashMap<String, String>(); passwords = new HashMap<String, String>();
stepData = new HashMap<String, List<Integer>>(); stepData = new HashMap<String, List<Integer>>();
...@@ -63,7 +64,7 @@ public class FotBot ...@@ -63,7 +64,7 @@ public class FotBot
friends = new HashMap<String, Set<String>>(); friends = new HashMap<String, Set<String>>();
currentDay = new Date(1, 1, 2021); currentDay = new Date(1, 1, 2021);
passwords.put(ADMIN_USERNAME, ADMIN_PASSWORD); this.register(ADMIN_USERNAME, ADMIN_PASSWORD);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment