Closed Hanan795 closed 4 years ago
It is work in some systems 🙄🙄
On Wed, Jul 15, 2020 at 6:56 PM DuaaH notifications@github.com wrote:
@DuaaH commented on this pull request.
In Server/helpers/Validation.js https://github.com/GSG-K3/bills-system-analysis/pull/87#discussion_r455149643 :
@@ -29,4 +29,27 @@ const validateLoginInfo = (userData) => { return schema.validate(userData); };
-module.exports = { validateEmail, validateLoginInfo }; +const validatesignupInfo = (userData) => {
- const schema = joi.object({
- email: joi
- .string()
- .min(6)
- .required()
- .email(),
- userName: joi
- .string()
- .min(5)
- .max(30)
- .required()
- .pattern(new RegExp('^[a-zA-Z0-9_]')),
the pattern you used for username tells the user that the name should contain characters and numbers.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/GSG-K3/bills-system-analysis/pull/87#pullrequestreview-449083017, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANO6JDUWVDO5BPOG6MHPZO3R3XGS3ANCNFSM4O2UBVVQ .
Solve conflict