Skip to content
Permalink
Browse files
BUGFIX: Confirm-email would sometimes show missing email
  • Loading branch information
hijohnnylin committed Feb 18, 2020
1 parent c9efd65 commit 418357aa27878fb4885a313d5888c7eaeab0937b
Showing 1 changed file with 1 addition and 0 deletions.
@@ -126,6 +126,7 @@ router.get(["/confirm-email"],
query("email")
.exists().withMessage("Missing email.")
.not().isEmpty().withMessage("Missing email.")
.normalizeEmail()
.isEmail().withMessage("Invalid email address."),
query("code")
.exists().withMessage("Missing confirmation code.")

0 comments on commit 418357a

Please sign in to comment.