Added optional default admin account
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user