validate email using regex
This commit is contained in:
@@ -88,8 +88,9 @@ module.exports = {
|
||||
repromptSpeech
|
||||
);
|
||||
} else if (!intent.slots.Message.value) {
|
||||
intent.slots.Email.value = emailHelper.transformEmailFromAlexaResponse(intent.slots.Message.value);
|
||||
if (
|
||||
!emailHelper.validateEmailFromAlexaResponse (
|
||||
!emailHelper.isEmailValid (
|
||||
intent.slots.Email.value
|
||||
)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user