Skip to content

Commit

Permalink
fix: [torrust#585] email field if regsitration form can be empty
Browse files Browse the repository at this point in the history
when email is optional for registration.
  • Loading branch information
josecelano committed Jul 10, 2024
1 parent 331856c commit 96ef18e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/registration/RegistrationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<template v-if="settings && settings.email_on_signup !== EmailOnSignup.Ignored">
<FormInputText
v-model="form.email"
type="email"
:type="settings.email_on_signup === EmailOnSignup.Required || form.email !== '' ? 'email' : 'text'"
label="Email"
name="email"
data-cy="registration-form-email"
Expand Down

0 comments on commit 96ef18e

Please sign in to comment.