Login and Registration Form using React + Node + MySQL | Login and Sign Up Form with Validation

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 มี.ค. 2023
  • This video is a very simple beginner's version of a register/login page. It includes registering users, inserting data into a database, and reading the data to allow login. We also validated our forms with React JS. Login and Registration Form using React + Node + MySQL | Full Stack Login and Sign Up Form

ความคิดเห็น • 248

  • @feelingnether158
    @feelingnether158 ปีที่แล้ว +4

    this guy is a lifesaver for real !

  • @KrishRachakonda
    @KrishRachakonda ปีที่แล้ว +15

    Hi Yousaf, I want to express my appreciation for the wonderful job you've done. I have a small feedback regarding the code, and I would highly appreciate it if you could provide some explanation on why you chose to use these specific approaches instead of alternative ones.

  • @nickko1427
    @nickko1427 10 หลายเดือนก่อน +8

    Im having an issue with the data being stored on the DB, on the signup page im only able to create 1 user record. I cannot have more than 1 record, when i delete the existing record im left with none but then im able to create a new record that only amounts to 1. Is there any way to fix this?
    Edit: resolved the issue, forgot to check the auto incrementation box on the ID field in database

  • @user-vh1ib1lx9c
    @user-vh1ib1lx9c 11 หลายเดือนก่อน

    Thank you so much, Yousaf. Nice tutorial.

  • @bleonjusufi8375
    @bleonjusufi8375 ปีที่แล้ว +6

    Make a part 2 of this and do CRUD Operations

  • @zephyr_koryami
    @zephyr_koryami 8 หลายเดือนก่อน +10

    Backend starts at 28:33

  • @satnam4583
    @satnam4583 ปีที่แล้ว +1

    Awesome video 😎👍

  • @harishsrinivasan3552
    @harishsrinivasan3552 7 หลายเดือนก่อน

    Thank you brother!!!
    it is very useful

  • @jeaneudesdjeya9151
    @jeaneudesdjeya9151 9 หลายเดือนก่อน +1

    Ta vidéo m'a beaucoup aidé du coup je m'abonne❤

    • @emmma383
      @emmma383 4 หลายเดือนก่อน

      please I have a question: is the information recorded in the database???

  • @melvindomingo2292
    @melvindomingo2292 2 หลายเดือนก่อน +4

    If you’re experiencing issues with data not being inserted into your database, it might be due to the maximum length of the ‘email’ column in your ‘login’ table being too short to accommodate the email addresses you’re trying to insert. To resolve the issue, you can increase the length of the ‘email’ column in your ‘login’ table. Thank me later😉

  • @LoveCintaAmour
    @LoveCintaAmour 6 หลายเดือนก่อน +3

    Hello, thanks first for your exceptional video, but I have a small question, please how did you create the server.js cause if I saw it well, it seems to be outside to this reactjs environment app.

  • @sandipkc
    @sandipkc ปีที่แล้ว +8

    great tutorial. But no github link. I know there is code at blogpost. The code is not readable.

  • @sivaprasadreddy6453
    @sivaprasadreddy6453 หลายเดือนก่อน +1

    Thank you for valuable time taken this video , you can properly explained this video and also once for very thank you for teaching

  • @fola_azeez
    @fola_azeez 16 วันที่ผ่านมา

    Amazing video bro, I learned a lot. Thank you

  • @bayramcinarr
    @bayramcinarr ปีที่แล้ว +2

    everything okey but when i try to enter with email and password it says this record is not valid eventhough the record in database

  • @Aravindh143s
    @Aravindh143s หลายเดือนก่อน

    thank you so much ,its working♥

  • @virendrachavda8875
    @virendrachavda8875 ปีที่แล้ว

    Thanks bro👍

  • @Abdurrehmankhan-dk2td
    @Abdurrehmankhan-dk2td 5 หลายเดือนก่อน

    bro why you use new database for signup? when you can also use login data base

  • @rishabhsharma2581
    @rishabhsharma2581 5 หลายเดือนก่อน

    love from india

  • @arnasvainilavicius2459
    @arnasvainilavicius2459 10 หลายเดือนก่อน +4

    Great vid, many thanx.
    One question though
    Seems like the green login as well as signup buttons need to be clicked twice in order for them to work.
    Is there a way to fix this?

    • @utkarshguruji8894
      @utkarshguruji8894 4 หลายเดือนก่อน

      any leads ?

    • @isoulfeed1g554
      @isoulfeed1g554 13 วันที่ผ่านมา

      Change
      "
      setErrors(Validation(values))
      if(errors.name === "" && errors.email === "" && errors.password === "") {
      "
      To
      "
      const err = Validation(values);
      setErrors(err);
      if(err.name === "" && err.email === "" && err.password === "") {
      "

  • @naimnaro6797
    @naimnaro6797 4 หลายเดือนก่อน +3

    i fixed it (if click sign up button but no data added in your phpmyadmin)
    change server.js
    const sql = "INSERT INTO `login`(`name`, `email`, `password`) VALUES ('" + req.body.name + "', '" + req.body.email + "', '" + req.body.password + "')";
    also add debug log like
    console.log("SQL Query:", sql);
    console.log(values);
    console.log(req.body); (for test, debugging)
    also trying to insert in phpmyadmin web not in backend
    thank you yousaf,
    it was long i stay up night and fixed it
    love your contents

    • @mahmudchoudhury4844
      @mahmudchoudhury4844 4 หลายเดือนก่อน

      Possible to send your codes; I'm having the same issues

  • @pravinjedhe2631
    @pravinjedhe2631 7 หลายเดือนก่อน

    very helpful

  • @rence9522
    @rence9522 9 หลายเดือนก่อน

    great video can iask sir why you not save the file into a jsx?

  • @chanchleshaharwar
    @chanchleshaharwar ปีที่แล้ว

    Make this type video but give one field for user type

  • @carlosstoll3637
    @carlosstoll3637 ปีที่แล้ว +1

    Good video! Could you make one just like it, nothing more than including JWT, Bcrypt and cookies?

  • @user-tv5wg1no8v
    @user-tv5wg1no8v ปีที่แล้ว

    best 🔥

  • @venkateshTotad-hc2iq
    @venkateshTotad-hc2iq 7 หลายเดือนก่อน

    Nice Video

  • @pateldarshil2106
    @pateldarshil2106 4 หลายเดือนก่อน

    it was very easy guidence..!!

    • @emmma383
      @emmma383 4 หลายเดือนก่อน

      please I have a question: is the information recorded in the database???

  • @mengistuyirga3917
    @mengistuyirga3917 2 หลายเดือนก่อน

    Sir, if I put localhost:3000/home, it will open the url without login, is it good?

  • @singhsai9870
    @singhsai9870 9 หลายเดือนก่อน +1

    @codewithyousaf while i am trying my data was not inserting to the database can you help and not retrieving also
    console.log(req.body) i tried with this data coming to server but not inserting

    • @codewithyousaf
      @codewithyousaf  9 หลายเดือนก่อน

      check the connection

  • @SanjayKumar-kk7lz
    @SanjayKumar-kk7lz 9 หลายเดือนก่อน +1

    Really, it's a nice video. First time submit button not working for login and signup. Kindy let me know how to clear values of input after form submitted...

    • @codewithyousaf
      @codewithyousaf  9 หลายเดือนก่อน

      use useRef hook for that
      first import it then create an instance ot it then assign to input field finally in the submit fun clear the value of that.

    • @s.moonga7928
      @s.moonga7928 5 หลายเดือนก่อน

      Can i please get the source code please ​@@codewithyousaf

  • @mo-awny
    @mo-awny 3 หลายเดือนก่อน +2

    first thanks bro for this video
    2nd i update the code to
    const err = Validation(values);
    setErrors(err);
    and i still need to click 2 time on signup

    • @codewithyousaf
      @codewithyousaf  3 หลายเดือนก่อน +1

      Check that code here:
      www.buymeacoffee.com/codewithyousaf/login-registration-form-using-react-node-js-mysql

  • @mohamedzahidshakeebbasha9682
    @mohamedzahidshakeebbasha9682 8 หลายเดือนก่อน +1

    when I click sign up, it's taking me to login page but In db no records are getting created, when I console the res, the data says Error but status code is 200, any suggestions?

    • @codewithyousaf
      @codewithyousaf  8 หลายเดือนก่อน

      check server side coding once again after a cup of coffee you find the error.

  • @xeverybolo2323
    @xeverybolo2323 7 หลายเดือนก่อน +6

    my name, email, and password wont show in the database after pressing Sign Up

  • @samueligwe3858
    @samueligwe3858 ปีที่แล้ว

    thankyou so much, i will buy you a coffee

  • @naimnaro6797
    @naimnaro6797 4 หลายเดือนก่อน

    please why..
    i use your code copy paste
    but click sign up then no data in phpmyadmin

  • @play-way
    @play-way 10 หลายเดือนก่อน

    Make a CRUD operation video

  • @eFullStack
    @eFullStack 2 หลายเดือนก่อน +2

    Thank you for the tutorial. I have made a small fix on database post for user signup:
    app.post("/signup", (req, res) => {
    const q = "INSERT INTO login (`name`,`email`,`password`) VALUES (?)"
    const values = [
    req.body.name,
    req.body.email,
    req.body.password,
    ]
    db.query(q, [values], (err, data) => {
    if(err) return res.json(err);
    return res.json("User created successfully.");
    })
    })

  • @electronicdev4978
    @electronicdev4978 7 หลายเดือนก่อน

    How to log out? what if i want to close my session?

  • @jhonrexeycabrera8764
    @jhonrexeycabrera8764 6 หลายเดือนก่อน

    Thanks

  • @truongang3104
    @truongang3104 ปีที่แล้ว +1

    thank you very much

  • @deepakrider4657
    @deepakrider4657 6 หลายเดือนก่อน

    How to get the default react js function?

  • @NganNguyen-my4ru
    @NganNguyen-my4ru 7 หลายเดือนก่อน +2

    I did as you instructed but still cannot connect to the database. Please advise 🙏🙏🙏

    • @albatrus2820
      @albatrus2820 2 หลายเดือนก่อน

      Can you please send me the code I need it 🙏🏻🙏🏻

  • @sauravsingh471
    @sauravsingh471 4 หลายเดือนก่อน +1

    how do we change the password of an existing user, can you make a video on it please

  • @Hemagounder
    @Hemagounder 7 หลายเดือนก่อน +1

    When I click on signup, it's navigating to login page but records are not getting inserted in the database

  • @soufinator3631
    @soufinator3631 8 หลายเดือนก่อน

    I did everything I could, changed my routes, recreated the database, recreated some of my codes as well installed neccesary files, yet with all of this, the data added into the Sign Up formate does not show up into my database, I tried all possible ways yet this issue remains

    • @codewithyousaf
      @codewithyousaf  8 หลายเดือนก่อน +1

      First when you click submit button console the values you stored in variables if data printed then pass the data to server side in server side console the data if you got data from front-end then store it inside the database if not check your code.

    • @soufinator3631
      @soufinator3631 8 หลายเดือนก่อน

      @@codewithyousaf Thanks for replying but unfortunately I still have the problem, is there another way to fix it? Thanks in adance

    • @codewithyousaf
      @codewithyousaf  8 หลายเดือนก่อน

      @@soufinator3631 www.buymeacoffee.com/codewithyousaf/login-registration-form-using-react-node-js-mysql

  • @kameshkumarp4235
    @kameshkumarp4235 ปีที่แล้ว +1

    in frontend , after adding signup .js output page became white ..... what i can do
    no error showing

  • @user-lj9pb7py3o
    @user-lj9pb7py3o ปีที่แล้ว +1

    Bro I have problem:
    Whenever I click on submit it will show "password didn't match"
    I have given 1 small letter 1 capital letter and digits with length>=8
    But it shows password didn't match?

    • @rinaaiko5619
      @rinaaiko5619 ปีที่แล้ว

      you should use 1 number 1 small letter 1 capital letter and length should be >=8

    • @madhurimadhuri7844
      @madhurimadhuri7844 ปีที่แล้ว

      @@rinaaiko5619 eventhough it's not working

    • @rinaaiko5619
      @rinaaiko5619 ปีที่แล้ว

      try 1234asdfASDF, if it isn't work, check regular expression

    • @orobosaekpomebe60
      @orobosaekpomebe60 9 หลายเดือนก่อน

      Go online and get password regex

    • @swordsriram8455
      @swordsriram8455 7 หลายเดือนก่อน

      try the password pattern :
      const password_pattern = /^.{8,}$/
      it will allows you to enter a minimum of 8 characters

  • @user-sy1od9og5g
    @user-sy1od9og5g ปีที่แล้ว +1

    Good day. Do you have video starting from setting up the Crud operation in phpMyAdmin because i don't know how to do it please.

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      I have video for crud you can search in my channel

    • @user-sy1od9og5g
      @user-sy1od9og5g ปีที่แล้ว

      @@codewithyousaf I mean a video showing how you set up the database in the phpMyAdmin for the Login and Signup please

  • @konatesoumahila2806
    @konatesoumahila2806 10 หลายเดือนก่อน

    Hi yousaf ,
    Thank you very much for this nice tutorial. But when I run the code I get an error like:Module not found: Error: Can't resolve 'axios'

    • @GARIMAJAIN-ww6mc
      @GARIMAJAIN-ww6mc 3 หลายเดือนก่อน

      @konatesoumahila2806 Did u get it?

  • @emmma383
    @emmma383 4 หลายเดือนก่อน

    please I have a probleme the information has not recorded in the database

  • @user-bq2qi6ky9j
    @user-bq2qi6ky9j ปีที่แล้ว

    36:34 I got problem while after adding nodemon server.js and starting npm start

    • @GARIMAJAIN-ww6mc
      @GARIMAJAIN-ww6mc 3 หลายเดือนก่อน

      @user-bq2qi6ky9j Did u get it??

  • @rishabhsharma2581
    @rishabhsharma2581 5 หลายเดือนก่อน

    thanax yousuf

  • @mohamedalikhattab5531
    @mohamedalikhattab5531 ปีที่แล้ว

    hello i have a problem when i click on signup i have a problem in the console {data: 'error', status: 200, statusText: 'OK', headers: AxiosHeaders, config: {…}, …} ?

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      check your server side code what did you return?

    • @Datngu46
      @Datngu46 7 หลายเดือนก่อน

      i faced that too, my solution is to check the query code, and make sure that there are enough data for not null columns, I have 4 not null column but I insert 3 values, so it running wrong

  • @zresthine
    @zresthine ปีที่แล้ว +1

    please give replay asap

  • @zlnzmr5565
    @zlnzmr5565 7 หลายเดือนก่อน +1

    for the app.post((portnumber) How do you find the port number? it's making me confused

    • @codewithyousaf
      @codewithyousaf  7 หลายเดือนก่อน

      Thats from server side

    • @iitzsuiseii1829
      @iitzsuiseii1829 7 หลายเดือนก่อน

      and how to know where the portnumber is? i am having having no problem up until when submiting the data in sign in and it will not show up on the databas server, maybe it might have something to do with the portnumber?@@codewithyousaf

  • @shintastha1171
    @shintastha1171 10 หลายเดือนก่อน +2

    Source code?

  • @rawansayed8707
    @rawansayed8707 9 หลายเดือนก่อน +1

    when i click on signup it doesnt navigate to the root. any advice?

  • @user-mj3vn9tg8h
    @user-mj3vn9tg8h 4 หลายเดือนก่อน

    By clicking signup button it did not navigate ro login page

  • @fatmanaoui5909
    @fatmanaoui5909 ปีที่แล้ว +1

    why do i keep getting [nodemon] app crashed - waiting for file changes before
    starting... error ?

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      close it and run it again if you are using windows go to task manager end those tasks of nodejs

    • @fatmanaoui5909
      @fatmanaoui5909 ปีที่แล้ว

      @@codewithyousaf still not working . Can you share the code on github ?

    • @fatmanaoui5909
      @fatmanaoui5909 ปีที่แล้ว

      @@codewithyousaf Cannot GET /signup error

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      @@fatmanaoui5909 www.buymeacoffee.com/codewithyousaf/login-registration-form-using-react-node-js-mysql

  • @ominhsang9824
    @ominhsang9824 ปีที่แล้ว +1

    I get my password is "123456" in signup page but it say password didn't match?
    Why?

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว +1

      password is validated that must be at least 8 char one smal, one capital and number

  • @challarinarendra9529
    @challarinarendra9529 2 หลายเดือนก่อน

    hi i have one issue not connecting to the data base

  • @abhishekgaware1931
    @abhishekgaware1931 9 หลายเดือนก่อน

    any git link for code?

  • @zresthine
    @zresthine ปีที่แล้ว +1

    i follow your video when click on register button not redirect to login page why?

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      the registration done successfully then check navigate to go to the login route

    • @zresthine
      @zresthine ปีที่แล้ว

      @@codewithyousaf hello yousufbhai my i have checked my server is running fine but still i get error 'Failed to load resource: the server responded with a status of 404 (Not Found)' so what is the issue cors orogin or other

    • @zresthine
      @zresthine ปีที่แล้ว

      i getting error AxiosError {message: 'Request failed with status code 404', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}

    • @zresthine
      @zresthine ปีที่แล้ว

      @@codewithyousaf hello give replay

  • @Ns-vm6rs
    @Ns-vm6rs 8 หลายเดือนก่อน +1

    I was not navigating to home page when i click on login and even it is showing any error ca you please help me what may be the error.

    • @codewithyousaf
      @codewithyousaf  8 หลายเดือนก่อน

      By Successfully login shows an alert in the code. If an alert happens then it is okay to use navigate otherwise check your code.

    • @Ns-vm6rs
      @Ns-vm6rs 8 หลายเดือนก่อน +1

      @@codewithyousaf yeah it is showing an alert msg whenever i try to login. i was unable to navigate to home page .By the way thanks for replying

    • @codewithyousaf
      @codewithyousaf  8 หลายเดือนก่อน

      @@Ns-vm6rs did you import useNavigate from react-router-dom
      after importing create an instance of that then use it.
      it will be Okay

  • @user-ms8nd6sl7n
    @user-ms8nd6sl7n ปีที่แล้ว

    what ? the button are not responsive to functional

  • @ayushlodha-rz2yd
    @ayushlodha-rz2yd 5 หลายเดือนก่อน

    hi yousaf,i followed each and every step but when i try to enter the password of length greater than 8 it shows password didnt match

    • @faisalkakar9692
      @faisalkakar9692 หลายเดือนก่อน

      password must have at least one capital letter e.g Abcd1234

  • @Ns-vm6rs
    @Ns-vm6rs 9 หลายเดือนก่อน +1

    my code is running but when i use signup function then it is saying that the pasword ,email didn't match

    • @codewithyousaf
      @codewithyousaf  9 หลายเดือนก่อน

      Check your validation.
      follow the video

    • @themindblast8654
      @themindblast8654 5 หลายเดือนก่อน

      bro share your source code @@codewithyousaf

  • @sarthakpathak8020
    @sarthakpathak8020 ปีที่แล้ว +2

    source code bhi dal diya karo
    😔

  • @kavyavaranasi9893
    @kavyavaranasi9893 ปีที่แล้ว

    bro could you please tell me to solve CORS failed error in console

    • @ankushroxta9019
      @ankushroxta9019 6 หลายเดือนก่อน

      install cors in backend folder run this command npm install cors

  • @bobi_tron
    @bobi_tron 6 หลายเดือนก่อน

    4:00 haven't explained this rfce thing. It doesn't work for me

    • @HB-os3ci
      @HB-os3ci 3 หลายเดือนก่อน

      Create React Functional Component. It's a boilerplate for react

  • @OmTagalpallewar
    @OmTagalpallewar 6 หลายเดือนก่อน

    can you please provide codes of all files

  • @ominhsang9824
    @ominhsang9824 ปีที่แล้ว

    I got user's information from database
    And now I want pass user's information to Home
    Can u give me a hint to do this task

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว +1

      @@ominhsang9824 The best way is redux to store user info and access from all components

  • @madanmohan5661
    @madanmohan5661 5 หลายเดือนก่อน

    need source code (could you provide git link) ?

  • @sainadhacharyee-0368
    @sainadhacharyee-0368 25 วันที่ผ่านมา

    Sir I got problem with password validation it's showing password didn't match after I typed correct password

  • @gamingpro4524
    @gamingpro4524 ปีที่แล้ว +2

    Bro, i have problem why the data from register cant be entered in my mysql, i wish you can solve the problem, thaanks

    • @outmanelbakkaoui1579
      @outmanelbakkaoui1579 ปีที่แล้ว +5

      i had a similar problem i fixed it by folowing these steps :
      first in your register variable change in
      ============================================================================
      .then((response) => {
      console.log(response); // change response to response.data
      })
      =========================================================================
      i the console it will give you the world 'Error' if that happens the problem is most likely in the index.js /server file
      check the line
      =============================================================================
      const sql = "INSERT INTO login (`name`, `email`, `password`) VALUES (?)";
      =============================================================================
      make sure the name , email and password are in ` ` not ' '
      second check your axios importation vscode for some reason mixs between Axios and axios and ends up importing the two of them
      third verify the port for localhost in
      =============================================================================
      .post("localhost:3001/register", {
      name: name,
      email: email,
      password: pass,
      })
      ============================================================================
      ==> hope this helps

    • @patelkeyur7240
      @patelkeyur7240 9 หลายเดือนก่อน

      ​@@outmanelbakkaoui1579 hey bro... Last solution... please explain in detail please

  • @FaizaAfzalOfficial
    @FaizaAfzalOfficial 11 หลายเดือนก่อน

    my error is "useNavigate " is not defined what to do kindly response??

    • @kevinphilip889
      @kevinphilip889 9 หลายเดือนก่อน

      did you import it at the top from 'react-router-dom'?

  • @Nithin23-sr8yu
    @Nithin23-sr8yu หลายเดือนก่อน

    why did you wrote port no as 8081 from where

  • @patelkeyur7240
    @patelkeyur7240 9 หลายเดือนก่อน +2

    Hey ..... My data not store in database ..... anyone help me?

    • @codewithyousaf
      @codewithyousaf  9 หลายเดือนก่อน

      First when you pass the data to the server side console your data like this:
      console.log(req.body)
      if the data was existed then check your connection if not then check your code

    • @patelkeyur7240
      @patelkeyur7240 9 หลายเดือนก่อน +1

      @@codewithyousaf thank you so much sir..... You are such a good person 😊

  • @sumathig4439
    @sumathig4439 11 หลายเดือนก่อน +1

    What database are you using??

    • @codewithyousaf
      @codewithyousaf  11 หลายเดือนก่อน

      MySQL
      I have video for MongoDB also

    • @sumathig4439
      @sumathig4439 11 หลายเดือนก่อน

      @@codewithyousaf Thanks bro... but how to authenticate login user using json server???

  • @developerbicads5892
    @developerbicads5892 ปีที่แล้ว +1

    can you show login using redux...please...!!!

  • @JoseDiaz-kr7sy
    @JoseDiaz-kr7sy หลายเดือนก่อน

    excelente video, tienes el code ?

  • @virendrachavda8875
    @virendrachavda8875 ปีที่แล้ว +1

    Bro I have problem:
    Whenever I click on submit it will show "password didn't match"
    And I also give atleast one small charecter one upper character sapicial charecter and digits
    But it shows password didn't match?

    • @ClickCrafters95
      @ClickCrafters95 ปีที่แล้ว +1

      same problem i am facing

    • @virendrachavda8875
      @virendrachavda8875 ปีที่แล้ว

      @@ClickCrafters95 bro i got solution: please don't use spacial characters like @ only use number and charecters: use password like this: asdfASD1234

    • @nestorjacinto6537
      @nestorjacinto6537 ปีที่แล้ว +1

      had the same problem, check password_pattern it should look like this "const password_pattern = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{8,}$/" for me it was missing some * symbols

    • @virendrachavda8875
      @virendrachavda8875 ปีที่แล้ว

      @@nestorjacinto6537 make password like this: asDF1234

    • @virendrachavda8875
      @virendrachavda8875 ปีที่แล้ว

      It contents all your pattern

  • @trix7450
    @trix7450 ปีที่แล้ว +3

    hello, nice tutorial! Can you please fix when i try to login or signup and when it shows error i need to click 2 ttimes to sign up.

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว +1

      I think the problem is that when you return the error and set them in setErrors so it is rendering again. 🤔

    • @trix7450
      @trix7450 ปีที่แล้ว +2

      @@codewithyousaf but it is same in your video. You need to click 2 times to login or signup

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว +1

      @@trix7450 You are right bro. It was like this but the problem was that when we returned error it needs two now I will provide you 2 options:
      1:
      I created a new complete video for authentication and authorization I will upload it tomorrow.
      2: I will check the video I uploaded and provide you a solution.
      which one?

    • @trix7450
      @trix7450 ปีที่แล้ว +2

      @@codewithyousaf thank you bro, i dont know if you saw my comment probobly got deleted because of pastebin link. I fixed the code and i can share code with you if you want tommorow

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว +2

      @@trix7450 I worked on it and fixed it right now also I will update this video just write like :
      instead of {setErrors(Validation(values)}
      write like this:
      const err = Validations(values);
      setErrors(err);
      if(err.name === "" && err.email === "" && err.password === "")

  • @rahul43420
    @rahul43420 3 หลายเดือนก่อน

    I am getting cannot get signup error
    Plz help

  • @vanm3918
    @vanm3918 4 หลายเดือนก่อน

    Can i get the code please

  • @chanchleshaharwar
    @chanchleshaharwar ปีที่แล้ว

    Give the source code 🌪️

  • @ayushlodha-rz2yd
    @ayushlodha-rz2yd 5 หลายเดือนก่อน

    im getting axios error

  • @amoap603
    @amoap603 ปีที่แล้ว +1

    how to know what port number i should listen to?

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      check your code which one you written or check in the terminal

    • @ominhsang9824
      @ominhsang9824 ปีที่แล้ว +1

      @@codewithyousaf Can u tell me how to check the port number ?

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      @@ominhsang9824 check your server side file which port you assigned there

    • @iamrabiabalouch
      @iamrabiabalouch ปีที่แล้ว +1

      You can use any port no

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      @@iamrabiabalouch Yes, what you assign you can use that

  • @P-town58
    @P-town58 2 หลายเดือนก่อน

    Getting AxiosError any solution would be helpful

    • @muthu.k6877
      @muthu.k6877 2 หลายเดือนก่อน

      import axios from 'axios';

  • @decimo937
    @decimo937 ปีที่แล้ว +1

    Please share the code

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว +1

      www.buymeacoffee.com/codewithyousaf/login-registration-form-using-react-node-js-mysql

  • @alazart3383
    @alazart3383 2 หลายเดือนก่อน

    hpw to make this a mobile app

  • @venkyammu9145
    @venkyammu9145 ปีที่แล้ว +1

    when i will submit data
    password field does not match

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      one thing I should recommend you that always use condole.log OK. when you get data from front-end check that in console you got the data or not also if your are getting from database check that the data received or not if didn't then check where is the problem.

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      console.log

    • @yousraramadan4222
      @yousraramadan4222 ปีที่แล้ว +1

      @@codewithyousaf i have the same issue ... how can i make him get the email and password from database

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      @@yousraramadan4222 because the password field is validated the password should contain at lease on small char one capital and number at least 8 chars

    • @yousraramadan4222
      @yousraramadan4222 ปีที่แล้ว +1

      @@codewithyousaf thank you for replaying so quickly ;) but my pass is 'ABCabc1236' .... when i run the code >>he gave me
      "Password didn't match" and i dont know why can you help me plz

  • @AliyawarFarzam
    @AliyawarFarzam 10 หลายเดือนก่อน +1

    may i get this code?

    • @codewithyousaf
      @codewithyousaf  10 หลายเดือนก่อน

      www.buymeacoffee.com/codewithyousaf/login-registration-form-using-react-node-js-mysql

  • @ongocthien3090
    @ongocthien3090 ปีที่แล้ว +1

    when i click Signup, but it doesn't execute

    • @codewithyousaf
      @codewithyousaf  ปีที่แล้ว

      that has problem you can solve that like this :
      instead of {setErrors(Validation(values)}
      write like this:
      const err = Validations(values);
      setErrors(err);
      if(err.name === "" && err.email === "" && err.password === "")

    • @ongocthien3090
      @ongocthien3090 ปีที่แล้ว

      @@codewithyousaf yes, i have

    • @patelkeyur7240
      @patelkeyur7240 9 หลายเดือนก่อน +1

      Hey brother....you solve the error?

    • @ongocthien3090
      @ongocthien3090 9 หลายเดือนก่อน

      @@patelkeyur7240 yes

    • @codewithyousaf
      @codewithyousaf  9 หลายเดือนก่อน

      @@patelkeyur7240 your sign up button need to be pressed twice or it doesn't work.
      If it need twice then check the above comment I provided the solution.

  • @HalalBiceps203
    @HalalBiceps203 7 หลายเดือนก่อน

    Source code bro

  • @giathuan8408
    @giathuan8408 2 หลายเดือนก่อน

    20:30

  • @user-zh2ok9hv8z
    @user-zh2ok9hv8z 5 หลายเดือนก่อน

    Дякую за відео, хоча мене це не дуже цікавить, але корисно було послухати

  • @sambotsector4614
    @sambotsector4614 3 หลายเดือนก่อน

    Can you please share the source code?

  • @visalofficial1615
    @visalofficial1615 ปีที่แล้ว +1

    Why not use react (tsx)?

    • @andelsonnicolaslopezysabel2501
      @andelsonnicolaslopezysabel2501 ปีที่แล้ว +1

      Well in you're working on a project with a team you must use it, but for React it doesn't matter 'cause by itself can understand what's inside the file, You should use appropriate extension when somebody else needs to know what type of code is inside