Added optional default admin account

This commit is contained in:
2021-03-07 06:59:58 +11:00
parent aacd64a769
commit ac980426a5
7 changed files with 54 additions and 4 deletions
+5
View File
@@ -78,6 +78,11 @@ const validateDetails = async (body) => {
return 'username already exists';
}
//validate password
if (body.password.length < 8) {
return 'password too short';
}
return null;
};