notherbase-fs 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
register: async (req) => {
|
|
49
49
|
check(req.body.data.password.length > 7, "Password too short.");
|
|
50
50
|
check(req.body.data.email.length > 7, "Email too short.");
|
|
51
|
-
check(req.body.data.
|
|
51
|
+
check(req.body.data.username.length > 2, "Username too short.");
|
|
52
52
|
|
|
53
53
|
let user = new req.db.User("user", req.body.data.email);
|
|
54
54
|
let userData = await user.recall();
|
package/package.json
CHANGED