forked from External/mage
Server improves:
* Server: improved messages on register/reset dialogs; * Tests: added database compatible tests on new code or libs (auth db);
This commit is contained in:
parent
ec87af8d9a
commit
301539d75b
8 changed files with 138 additions and 30 deletions
|
|
@ -66,7 +66,15 @@ public final class Main {
|
|||
|
||||
public static final PluginClassLoader classLoader = new PluginClassLoader();
|
||||
private static TransporterServer server;
|
||||
|
||||
// special test mode:
|
||||
// - fast game buttons;
|
||||
// - cheat commands;
|
||||
// - no deck validation;
|
||||
// - simplified registration and login (no password check);
|
||||
// - debug main menu for GUI and rendering testing;
|
||||
private static boolean testMode;
|
||||
|
||||
private static boolean fastDbMode;
|
||||
|
||||
/**
|
||||
|
|
@ -98,7 +106,7 @@ public final class Main {
|
|||
|
||||
if (config.isAuthenticationActivated()) {
|
||||
logger.info("Check authorized user DB version ...");
|
||||
if (!AuthorizedUserRepository.instance.checkAlterAndMigrateAuthorizedUser()) {
|
||||
if (!AuthorizedUserRepository.getInstance().checkAlterAndMigrateAuthorizedUser()) {
|
||||
logger.fatal("Failed to start server.");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue