Skip to content

Commit 88a7777

Browse files
committed
Merge #586: Allow an empty email field in the registration form when email is optional
96ef18e fix: [#585] email field if regsitration form can be empty (Jose Celano) Pull request description: Depends on: torrust/torrust-index#670 Allow an empty email field in the registration form when email is optional in the configuration. To be fully fixed this [PR](torrust/torrust-index#670) has to be merged. ACKs for top commit: josecelano: ACK 96ef18e Tree-SHA512: d9f18e7acceeac8b8016ac8cf12fae5240b78e5f610c7ad522a56f5a5046e95e5b1b50d6c682f43a94cb2c0572968da45d276ca517b1c7e63df33a6ecda7b183
2 parents 331856c + 96ef18e commit 88a7777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/registration/RegistrationForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<template v-if="settings && settings.email_on_signup !== EmailOnSignup.Ignored">
1313
<FormInputText
1414
v-model="form.email"
15-
type="email"
15+
:type="settings.email_on_signup === EmailOnSignup.Required || form.email !== '' ? 'email' : 'text'"
1616
label="Email"
1717
name="email"
1818
data-cy="registration-form-email"

0 commit comments

Comments
 (0)