Skip to content

Commit 77950b8

Browse files
committed
Fix username
1 parent 578dc82 commit 77950b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

models/User.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let generateAuthToken = function(sub, admin, otp, needOtp) {
1313

1414
let validate = function (jsonObj) {
1515
const schema = Joi.object({
16-
username: Joi.string().min(4).max(50).required().alphanum(),
16+
username: Joi.string().min(4).max(50).required(),
1717
email: Joi.string().min(5).max(255).required().email(),
1818
password: passwordComplexity().required()
1919
});

0 commit comments

Comments
 (0)