#111

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024

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

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

    This is a recommeded youtube channel for both beginner and senior mern developer. Guy you are the best

  • @chanthoem-dg5fi
    @chanthoem-dg5fi ปีที่แล้ว +3

    you are so amazing for tutorials, thank you

  • @R.M480
    @R.M480 ปีที่แล้ว +2

    when this course will be complete

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

    so the restrict function is basically a closure? Wow! used it today.

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

    Hi sir, I have a concern.
    Like you have set a field for the signup. That is completely fine. Now you are testing in an api.
    But in frontend I dont think we would have a field role cause anyone can signup as a admin.

  • @Alex.todorov
    @Alex.todorov 5 หลายเดือนก่อน

    I can’t find the code in the repo listed below

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

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

    Hi sir,
    I see your content, if you don't mind can you come up with sql database with same playlist and same content.
    So other and I can understand the how the database design in nosql and sql.
    Thank you ❤

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

    hello sir, I have a question regarding a bug for the signup route anyone can come and register/signup their self as admin how can we fix this? please help

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

      you can destructure the req.body and specify only the values that you want. in this case, do not include the 'role'. Then you can just go directly to the db and edit it from there.

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

      do you really think this is a practical solution??
      @@MithOpog

  • @Tony.Nguyen137
    @Tony.Nguyen137 4 หลายเดือนก่อน

    @4:40 how to fix it? Making an admin account like this is kind of unsafe?!

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

    as anyone can set their role to admin using /signup endpoint . can you make video to fix that bug... or can tell me in comment to to fix that please

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

      you found the solution ?

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

      @@gaireyc6215 it will be handled in frontend

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

      no bro, I found it
      First we will self modify the super user in database by setting the role as admin and in backend we make a route using that we can modify the existing user as a role admin.
      This is how these things are done in industry.
      However, if the email and passord accidentally matched by random user during login process, they can make any one admin as per their choice. so for super user, there is a kind of verification process through email. I come to know these things when I consulted with senior developer of the company.

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

      @@gaireyc6215 how we will create super user in database. By creating route or by directly in database??