We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 578dc82 commit 77950b8Copy full SHA for 77950b8
1 file changed
models/User.js
@@ -13,7 +13,7 @@ let generateAuthToken = function(sub, admin, otp, needOtp) {
13
14
let validate = function (jsonObj) {
15
const schema = Joi.object({
16
- username: Joi.string().min(4).max(50).required().alphanum(),
+ username: Joi.string().min(4).max(50).required(),
17
email: Joi.string().min(5).max(255).required().email(),
18
password: passwordComplexity().required()
19
});
0 commit comments