All language subtitles for 007 Validating Emails_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

In this lecture, we're going to focus on validating the email, the process is the same as before as

an exercise.

Try validating the email field.

Be sure to output a message.

If there's an error below the input field, refer to the documentation for the list of rules available.

Don't feel pressure to use as many rules as you can.

Keep it simple and use what you think is right.

Pause the video and good luck.

Welcome back.

If you are able to validate the email field, then congrats.

If not, that's fine as well.

Let's go over it together, open the authentication component, file in the template, search for the

email field.

The first step is to convert the input into the field component will change the input element to the

field component.

The field component will output an input element next will give the input a name, will set the name

to email.

Afterward, we'll give the input some rules or using a validation schema to list our rules.

Scroll down to the schema object in the data function, the rules will be the following required minimum

set, two, three, maximum set to one hundred email.

Or using the same rules we use for the name field, except for the Alpha Space's rule, emails typically

don't have spaces.

You're not required to set these rules in any particular order.

I prefer to set the required rule first because I think it's worth checking before any other rule.

I'm introducing a new rule called email.

It will check if the input is a valid email, however, will receive an error because we haven't registered

it.

Let's register it as a rule.

Open the validation file.

We won't have to create an email rule because we validate comes with one, we can import the email function

from the Validate Rules package.

And our install method we can call the defined function will set the name to email with the email function.

After registering the rule, we can use it in our component, we've already listed it as a rule for

the email field, we can move on to the final step, which is to output the error, switch back to the

authentication component file below the field component.

We're going to add the error message component.

We'll add the text, read six hundred class to change the text, color to read.

Lastly, will set the name property to email.

We're finished.

Let's switch over to the browser to test if it works.

Check the console for any errors, there shouldn't be any after confirming there are no errors, try

and testing the registration email field.

And air will appear if you try entering an invalid email, validate, considers an email valid if it

has the at symbol with the domain extension at the end.

If I were to input test at test dotcom, then that will result in a successful validation.

We've successfully validated the email field.

Let's move on to the other fields in the next one.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.