diff --git a/src/controllers/api/account/loginController.js b/src/controllers/api/account/loginController.js
index fd926b0..f5f2130 100644
--- a/src/controllers/api/account/loginController.js
+++ b/src/controllers/api/account/loginController.js
@@ -56,24 +56,23 @@ module.exports.post = async function(req, res){
//Look for the username in the migration DB
const migrationDB = await migrationModel.findOne({user});
- //If this isn't a migration
- if(migrationDB == null){
- //Get login attempts
- const attempts = sessionUtils.getLoginAttempts(user)
-
- //if we've gone over max attempts
- if(attempts.count > sessionUtils.throttleAttempts){
- //tell client it needs a captcha
- return res.sendStatus(429);
- }
- //otherwise
- }else{
+ //If we found a migration profile
+ if(migrationDB != null){
//If the user has a good password
if(hashUtils.compareLegacyPassword(pass, migrationDB.pass)){
//Redirect to migrate
return res.sendStatus(301);
}
}
+
+ //Get login attempts
+ const attempts = sessionUtils.getLoginAttempts(user)
+
+ //if we've gone over max attempts
+ if(attempts.count > sessionUtils.throttleAttempts){
+ //tell client it needs a captcha
+ return res.sendStatus(429);
+ }
}else{
res.status(400);
return res.send({errors: validResult.array()})
diff --git a/src/utils/loggerUtils.js b/src/utils/loggerUtils.js
index 12e5ad8..b3e30c3 100644
--- a/src/utils/loggerUtils.js
+++ b/src/utils/loggerUtils.js
@@ -225,7 +225,7 @@ module.exports.welcomeWagon = function(count, date, tokes){
\x1b[32m WEE EEE EED\x1b[0m C A A N NN O O P Y
\x1b[32m WEEEEED\x1b[0m CCCC A A N NN OOO P Y
\x1b[32m WEEE ! EEED\x1b[0m
-\x1b[32m !\x1b[0m \x1b[34mInitialization Complete!\x1b[0m This server has booted \x1b[4m${count}\x1b[0m time${count == 1 ? '' : 's'} and taken ${tokes} \x1b[4mtoke${tokes == 1 ? '' : 's'}\x1b[0m.
+\x1b[32m !\x1b[0m \x1b[34mInitialization Complete!\x1b[0m This server has booted \x1b[4m${count}\x1b[0m time${count == 1 ? '' : 's'} and taken \x1b[4m${tokes}\x1b[0m toke${tokes == 1 ? '' : 's'}.
\x1b[32m !\x1b[0m This server was first booted on \x1b[4m${date}\x1b[0m.`
//Dump art to console
diff --git a/src/views/migrate.ejs b/src/views/migrate.ejs
index 3744efb..63e8f87 100644
--- a/src/views/migrate.ejs
+++ b/src/views/migrate.ejs
@@ -25,6 +25,9 @@ along with this program. If not, see