Angular Authentication Tutorial - 9 - Login API

preview_player
Показать описание

📱 Follow Codevolution

Angular | Angular Authentication Tutorial for Beginners | Login API
Рекомендации по теме
Комментарии
Автор

I am very very thankful to you for posting these videos. It really helped me understand how everything ties together. Without your videos, it would have taken a very long time for me. Thank you!

fighta
Автор

Thank you for all of your amazing videos, Vishwas! I really appreciate it!

KellyRYoung
Автор

Excelent tutorial for Angular authentication! thanks a lot!

simpleway
Автор

how should change the project if we want connect it to mysql ?
THX

roccodenicolo
Автор

how is the future of MEAN developer? I do angular, and want to choose java vs node with express?

rameshbhattarai
Автор

Isn't this code assuming that we have got a plain text passwords in our database?

kusiopl
Автор

Getting undefined type email(typerror)

vinayakteradali
Автор

I think that we shouldn't show that only the password is wrong, I believe that we should send a message saying *Username or password invalid* or something like that. I mean I was wondering if I'm wrong but that's what I think. (cool videos 👍 btw)

fernandotoledo
Автор

I have a question, in this code below
User.findOne({email : userData.email},
(error, user) => {
if(error)
{
console.log(error)
}else{
if(!user){
res.status(401).send('invalid email')
}else if(user.password !== userData.password){
res.status(401).send('invalid password')
}else{
res.status(200).send(user)
}


}
})
in this function (error, user) => { how does the code know the value of the user? I mean, when you say !user, how does it know the variable user contains or no any info? In fact, how does a password know it contains a value for a password?

chuchotech