You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->logAndThrowError(400, 'Date of Birth should be in MM/DD/YYYY format.', $this->get('translator')->trans('api.show_error_dob', array(), 'messages', $request->getLocale()), $request->getLocale());
247
+
}
248
+
243
249
$user = $userManager->createUser();
244
250
245
251
// $file stores the uploaded Image file
@@ -270,7 +276,7 @@ public function postRegisterAction(Request $request)
// TODO: Why this validation is not working in Validation.yml for dob
571
+
$timestamp = strtotime($dob);
572
+
if ($dob && !$timestamp) {
573
+
$this->logAndThrowError(400, 'Date of Birth should be in MM/DD/YYYY format.', $this->get('translator')->trans('api.show_error_dob', array(), 'messages', $request->getLocale()), $request->getLocale());
0 commit comments