This is the very first comment i leave on a video since i started learning code: THANK YOU! The word is not great enough to express how much i am grateful! thanks you you video i understood a bunch of things that were hazy 'til now (MVC model, bscript and hashing, etc...). you are an amazing teacher, your explanations are so clear, it's easy to follow and understand whatever you do. thank you so much!
Dear future viewer, If, like me, you reached the end of this playlist expecting to see part 7: tough luck. At no point during the series were we told that this last part is only available to those who buy the course from Telmo's website. That's a shame, but as monthly access to Telmo's entire library of content is only $9.99 p/m, I'd suggest you head on over and just cough up what you have arguably already consumed in the form of value from this video series. 🤷♂️ I hope that clarifies your confusion and averts any disappointment. Guy's gotta make a living somehow, I guess! 😅
Hello Telmo.. you're the best channel giving tips and all! Please re-upload part 7 (if it was removed or something..) you left all of us on a cliffhanger 😅😅
For anyone that is getting issues with the results.lenght check. That is because the results array contains RowDataPackets. In the query you can add var resultArray = Object.values(JSON.parse(JSON.stringify(results))) and after that in the result.lenght change it with if(resultArray.lenght > 0). That fixed it for me.
Sei que não é o foco, mas pra economizar o consumo do banco chequem se as senhas conferem antes de verificar se o email existe, ou melhor, antes de realizar o POST pro backend, as paginas dinâmicas modernas costumam dar esse feedback enquanto está digitando porque é útil até em questão de usabilidade.
De qualquer forma, não confiem em validação no lado cliente, só para coisas muito básicas como essa, e as vezes é importante até ser redundante, é bom, e.g., um usuário comum saber enquanto digita que ele não pode inserir caracteres indesejados, mas usuários mais espertos podem inserir de outra forma, lugar de lógica é no backend.
Lots of respect for you Allah bless you I was stucked for three days and was feeling headache but know I am relax sir plz make backend on payment system plz sir lots of people are searching for it
Hi Telmo, this series is absolutely amazing, I have understood the various other features in this tutorial series. Among the other RUclipsrs you are very clear and specific in explanation with live outputs on the screen without any behind the screen modifications. Could you please update the part 7 in this series, because as of the the user is being registered and I am curious to develop the login integration of the user into the homepage. Could you please update us with the upload date of this 7th part. New sub here !! Thanks !!
This series is amazing, thank you so much! I learned a lot from it and the way you explain is the clearest. Please could you reupload part 7 so the series of the auth with jwt is complete? Thanks in advance, new sub here!
11:06 - I think instead of just 'results' we should use 'results.length'... If I am entering an email ID not present in my database... then the app is crashing... results is yielding an empty array... which is not a NULL value... so yeah... by using length function we could check if the array is empty or not... please correct me if I'm wrong...
I'm running into an error at minute 23:00. "Error: data and salt arguments required at Object.hash". I'm assuming we need a salt argument for the .hash() before it will work. Any ideas? Great video, just stuck because it seems to be deprecated.
Hi Troy, I'm really sorry about that, I really missed the video 5 after the 4, I'm uploading it right now, the full course will be available at telmoacademy.com, and you can use the code nodejs20 for 20% discount
Hello sir, your this series is very informative. i really need 7 part of videos. please share it to me i really need it. i am beginner and i will pay you when i started earning.....
this play list is very good but the actual part is missing . i just came here to learn about cookies but 7th part is still not uploaded. anyways ur explanation is very gud and u r explaining from very basics , thanks for that..
There's one problem here, the fact that after render the url keeps the POST url and the user can make f5 and this tries to submit it again. How to fix it?
why hashed passwords on register and on login are different even String values are same ? what is the solution to hash them with same values please help
Amazing videos Telmo, I do have the same question as Troy, are we missing the sections for routes.js, ruth.js and the controllers folder. Currently I am unable to return if password is not a match. Again stellar job on these tutorials I have been soaking all the information you have covered!
So sorry about that, I'm uploading now the missing video, the rest of the course will be available at telmoacademy.com, and for those of you following from youtube you can use the coupon nodejs20 for 20% off
Hi, I got to the point where I am testing to check if the passwords match or not. I thought I had written everything word by word but I am getting an "Error: ER_NO_DB_ERROR: No database selected" error in controllers/auth.js I have the following: const mysql = require('mysql'); const jwt = require('jsonwebtoken'); const bcrypt = require('bcryptjs'); const db = mysql.createConnection({ host: process.env.DATABASE_HOST, user: process.env.DATABASE_USER, password: process.env.DATABASE_PASSWORD, databse: process.env.DATABASE, }); exports.register = (req, res) => { console.log(req.body); const { name, email, password, passwordConfirm } = req.body; db.query( 'SELECT email FROM users WHERE email = ?', [email], async (error, results) => { console.log(results); if (error) { console.log(error); } else if (results.length > 0) { return res.render('register', { message: 'That email is already registered', }); } else if (password !== passwordConfirm) { return res.render('register', { message: 'Passwords do not match', }); } let hashedPassword = await bcrypt.hash(password, 8); console.log(hashedPassword); } ); }; Did I do something wrong in an earlier step?
we have the same error and unfortunately same mistake, I laughed at it because im looking for it merely for 1 hour, the spelling of "database" is "databse" ...
hello Telmo if i use ejs for the form and i need put this code {{#if message}} {{message}} {{/if}} this code is not working because the form is in ejs if i change and econfigure the page is so bad in the backend
Hi Telmo, in the db.query callback function in auth.js file. Instead of (error, results) can I put in (err, data) as parameters? What if I switched the parameters order to (results, errors) will I get an error?
Kinda shitty that Part 7 is behind the paywall, he should have disclaimed it from the beginning but at least is useful for you to try to do it yourself.
where is the part 7 please this was so helpful
This is the very first comment i leave on a video since i started learning code: THANK YOU! The word is not great enough to express how much i am grateful! thanks you you video i understood a bunch of things that were hazy 'til now (MVC model, bscript and hashing, etc...). you are an amazing teacher, your explanations are so clear, it's easy to follow and understand whatever you do. thank you so much!
I have no word to thank you for guiding me through this series
Dear future viewer,
If, like me, you reached the end of this playlist expecting to see part 7: tough luck.
At no point during the series were we told that this last part is only available to those who buy the course from Telmo's website. That's a shame, but as monthly access to Telmo's entire library of content is only $9.99 p/m, I'd suggest you head on over and just cough up what you have arguably already consumed in the form of value from this video series. 🤷♂️
I hope that clarifies your confusion and averts any disappointment.
Guy's gotta make a living somehow, I guess! 😅
Hi Telmo, Thank you for this video, may i know where is the part 7 of this video. Thanks!
Started watching this serie , went back to each one of them to thumbs up!
Hello Telmo.. you're the best channel giving tips and all! Please re-upload part 7 (if it was removed or something..) you left all of us on a cliffhanger 😅😅
For anyone that is getting issues with the results.lenght check. That is because the results array contains RowDataPackets. In the query you can add var resultArray = Object.values(JSON.parse(JSON.stringify(results))) and after that in the result.lenght change it with if(resultArray.lenght > 0). That fixed it for me.
Sei que não é o foco, mas pra economizar o consumo do banco chequem se as senhas conferem antes de verificar se o email existe, ou melhor, antes de realizar o POST pro backend, as paginas dinâmicas modernas costumam dar esse feedback enquanto está digitando porque é útil até em questão de usabilidade.
De qualquer forma, não confiem em validação no lado cliente, só para coisas muito básicas como essa, e as vezes é importante até ser redundante, é bom, e.g., um usuário comum saber enquanto digita que ele não pode inserir caracteres indesejados, mas usuários mais espertos podem inserir de outra forma, lugar de lógica é no backend.
you go straight to the point with a very clear explanation with what's going underthe hood thank you so much sir
Hi Telmo, you teaching method is really great plz need the 7th video
Lots of respect for you Allah bless you I was stucked for three days and was feeling headache but know I am relax sir plz make backend on payment system plz sir lots of people are searching for it
Hi , Telmo please upload the part 7 also . These series are very helpful .
@Lokesh Saini WTF
@@lokeshsaini1106 can you send me the part 7 sir?
Is Part 7 only available after paying for the full course?
yeah... not up front enough about this fact...
great work!!, part 7 please!!
You have to buy the course to get part seven... 😐
@@byleo2861 nope
@@jaguirre9176 yakışmadı!!!
The guy who made this tutorial is a clown.
Hi Telmo, this series is absolutely amazing, I have understood the various other features in this tutorial series. Among the other RUclipsrs you are very clear and specific in explanation with live outputs on the screen without any behind the screen modifications. Could you please update the part 7 in this series, because as of the the user is being registered and I am curious to develop the login integration of the user into the homepage. Could you please update us with the upload date of this 7th part. New sub here !! Thanks !!
This series is amazing, thank you so much! I learned a lot from it and the way you explain is the clearest. Please could you reupload part 7 so the series of the auth with jwt is complete? Thanks in advance, new sub here!
11:06 - I think instead of just 'results' we should use 'results.length'... If I am entering an email ID not present in my database... then the app is crashing... results is yielding an empty array... which is not a NULL value... so yeah... by using length function we could check if the array is empty or not... please correct me if I'm wrong...
Use results?.length to avoid crash
best series !! but where is the 7th part ?
Thank u so much. On these tutorials I have been soaking all the information you have covered!
Thank you very much sir !! This video series is best series for node js
Cannot read property 'length' of undefined
anyone help please .. getting this error
did you find the error?
check the spelling of length I'm sure that's the problem bcoz for some reason it autocorrect to 'lenght'
I'm running into an error at minute 23:00.
"Error: data and salt arguments required
at Object.hash". I'm assuming we need a salt argument for the .hash() before it will work.
Any ideas? Great video, just stuck because it seems to be deprecated.
Precisar manda um oi, que explico!
const bcrypt = require('bcrypt')
// codificando a senha
const salt = 12
const getSalt = bcrypt.genSaltSync(salt)
const senhaHash = bcrypt.hashSync(senha, getSalt)
why i can't find part 7? please help me
desistiu de gravar a parte 7 @Telmo?
Where is the 7th part of this series
ruclips.net/video/OEN5L_lAY8A/видео.html
Is there a part 7 of 7 yet? I only see 6 of 7..
ruclips.net/video/OEN5L_lAY8A/видео.html
@@suriyam5740 life saviour appreciate it thank you :D
@@suriyam5740 video unavailable? I can't access this video
@@suriyam5740 video is private
@@mutaz549 author would have locked it
Things I learned so far. Bootstrap, Json, Express and Node Js cool cool
I hope the part 7 will be released here
Hey Telmo, great series. Just wondering, when did you add in the routes, controlers, auth.js, and pages.js?
Hi Troy, I'm really sorry about that, I really missed the video 5 after the 4, I'm uploading it right now, the full course will be available at telmoacademy.com, and you can use the code nodejs20 for 20% discount
can you please send me the code or project file please brother..
For everyone who asks where is 7 he have the course payed this is probably a free introduction
i got this error "await is only valid in async function" when i call await bcrypt .hashh
I change it to bcrypt.hashSync and its work without await
Yow thank you.
@@mohamed_v1 Thanks man. It works.
Thank a lot it work!
Hello sir, your this series is very informative. i really need 7 part of videos. please share it to me i really need it. i am beginner and i will pay you when i started earning.....
Thanks sir, when will you add the last part, 7/7??
Very helpful, please drop next part
Thanks man but where is the part 7 :(
hi the results. length is not working can you give me the answer plz
You are amazing person, keep it up bro!
where is the last video :{ 7th one
this play list is very good but the actual part is missing . i just came here to learn about cookies but 7th part is still not uploaded. anyways ur explanation is very gud and u r explaining from very basics , thanks for that..
We are desperately waiting for the last part of the series.
Hello. I have this error : ER_NO_DB_ERROR: No database selected does anyone know how to solve it?
you just take the dot env and dot env cofig and path and public directory from app js and copy it to auth then it will work fine
hi Telmo ,
please share link of next video
There's one problem here, the fact that after render the url keeps the POST url and the user can make f5 and this tries to submit it again. How to fix it?
why hashed passwords on register and on login are different even String values are same ?
what is the solution to hash them with same values
please help
Where is 7 part of this course?
what happened wit part 7? please help to find it !
please where is the 7 part?? it can be help please
Where i can find the part 7/7 please do help
thank you! best example! greetings from Ukraine!
Hi! The message for the passwords do not match doesn work for me, any help?
Where is the Part 7 of the video???
As soon as I click register, all the css dissapears. Can anyone help me with this problem?
for ejs file, how do we pop out error?
yes
That's what i used, its been a year but hope that helps lol
bro you are the best thanks
Amazing videos Telmo, I do have the same question as Troy, are we missing the sections for routes.js, ruth.js and the controllers folder. Currently I am unable to return if password is not a match. Again stellar job on these tutorials I have been soaking all the information you have covered!
*auth.js
Hi Dylan, I hope I didn't forget to upload some part, ahah, I will check it and upload if missing :)
@@Telmosampaio You Rock! Looks like the gap is between tutorial 4 and 5.
So sorry about that, I'm uploading now the missing video, the rest of the course will be available at telmoacademy.com, and for those of you following from youtube you can use the coupon nodejs20 for 20% off
Its the video number 5 coming up
where is 7th part?????
thank you so much!!!
so useful !! thanks so much !!
where is video number 7?
Is there anyone have 7th video of it?
Hi, I got to the point where I am testing to check if the passwords match or not. I thought I had written everything word by word but I am getting an "Error: ER_NO_DB_ERROR: No database selected" error
in controllers/auth.js I have the following:
const mysql = require('mysql');
const jwt = require('jsonwebtoken');
const bcrypt = require('bcryptjs');
const db = mysql.createConnection({
host: process.env.DATABASE_HOST,
user: process.env.DATABASE_USER,
password: process.env.DATABASE_PASSWORD,
databse: process.env.DATABASE,
});
exports.register = (req, res) => {
console.log(req.body);
const { name, email, password, passwordConfirm } = req.body;
db.query(
'SELECT email FROM users WHERE email = ?',
[email],
async (error, results) => {
console.log(results);
if (error) {
console.log(error);
} else if (results.length > 0) {
return res.render('register', {
message: 'That email is already registered',
});
} else if (password !== passwordConfirm) {
return res.render('register', {
message: 'Passwords do not match',
});
}
let hashedPassword = await bcrypt.hash(password, 8);
console.log(hashedPassword);
}
);
};
Did I do something wrong in an earlier step?
we have the same error and unfortunately same mistake, I laughed at it because im looking for it merely for 1 hour, the spelling of "database" is "databse" ...
where is rest of videos sir?
i have two error : ER_NO_DB_ERROR: No database selected and TypeError: Cannot read property 'length' of undefined
did you found what was the problem? for the first error
@@paulapetcu894 Nothing :(
you just take the dot env and dot env cofig and path and public directory from app js and copy it to auth then it will work fine
Amazing tutor..
Glad it was helpful! :)
SyntaxError: await is only valid in async function
Somebody to tell me how i can resolve this probleme "TypeError: Cannot read property 'length' of undefined" ? I found anything. Help me please !!!
Please where is Part 7
hello Telmo if i use ejs for the form and i need put this code {{#if message}}
{{message}}
{{/if}}
this code is not working because the form is in ejs if i change and econfigure the page is so bad in the backend
use this
@@salvox1 not solved
Same problem
@@salvox1 thank you
Muito top, pena que ainda falta mais partes
hello, i keep getting an error of : "Access denied for user ''@'localhost' (using password: NO)", from the database. Any idea how to resolve this?
Ricardo, fix the issue this way in the mysql terminal: ALTER USER 'name_user'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
can you make a video on how to edit the profile user name ?
how to write the given below code, if i am using PostgreSQL?
Videos were awesome dude!!..but after reaching here searching for 7th video (res.render('login'),{message:"NO RESULT FOUND!"}).. 🙁
It is showing error 24:00
" Cannot destructure property 'name' of undefined or 'null' "
i am facing same problem.....
Hey, I had this issue as well. Make sure your constant is structured exactly like this:
const { name, email, password, passwordConfirm } = req.body;
make sure you have added app.use(express.json()) and app.use(express.urlencoded({extended:false}) in your app.js
thank you so much
hello sir, everything is fine. how can i stop the 'confirm form resubmission' ??
Where's the part 7?
Hi Telmo, in the db.query callback function in auth.js file. Instead of (error, results) can I put in (err, data) as parameters? What if I switched the parameters order to (results, errors) will I get an error?
part 7 not Available
kindly upload part no 7, rest tutorial is helpful for me
Syntax error: await is only valid in async function
What should I do?
Every time you use the await keyword it has to be inside an async function. So 19:55 just add the keyword async in front of the function.
need other parts
to understand the whole scenario
when I hash the password I it won't connect to the database, the program just hangs up? can anyone suggest anything for that?
What back end is used here? Thanks
Node.js is used as a backend and we use express.js its a framework of node.js
Great job!!!
part 7 pls
where part 7??
I'm sad! I don't have money for part 7😅
I lose my styling when the message is displayed. Did anyone face the same problem i faced?
in hbs files you need to put a slash before style.css =>
Kinda shitty that Part 7 is behind the paywall, he should have disclaimed it from the beginning but at least is useful for you to try to do it yourself.
i have error : email is not defined
pls help
Brother your tutorial is so Awesome and helpful, Muchas gracias
I'm Also Need pages.js Help me
I need the login
db.query('select email from customer where email=?', [email], async(error, results) => {
if(error){
console.log(error);
}
if(results.length>0){
return res.render('register',{
message: "That email is already in use"
})
}
else if(password !== passwordConfirm){
return res.render('register', {
message: 'Passwords don not match'
});
}
let hashedPassword = await bcrypt.hash(password,8);
console.log(hashedPassword);
});
//res.send("Form submitted");
}
W tutorial
next part plzzz...?
part 7 plsssssss
please upload next part bro
Error proces code none zero something