We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4abe1e commit 87c95a1Copy full SHA for 87c95a1
webapp/server/edge-api/validations/oauth-login-validator.js
@@ -1,8 +1,8 @@
1
const { body, validationResult } = require('express-validator');
2
3
const validationRules = () => [
4
- body('firstName').trim().matches(/^[a-zA-Z]+$/).withMessage('Invalid firstName.'),
5
- body('lastName').trim().matches(/^[a-zA-Z]+$/).withMessage('Invalid lastName.'),
+ body('firstName').trim().matches(/^[a-zA-Z]+/).withMessage('Invalid firstName.'),
+ body('lastName').trim().matches(/^[a-zA-Z]+/).withMessage('Invalid lastName.'),
6
body('email').trim().normalizeEmail().isEmail().withMessage('Invalid email address.'),
7
body('oauth').trim().notEmpty().withMessage('Oauth should not be empty.'),
8
];
0 commit comments