Admin and User Registration and Login Application with Spring Data JPA and MySQL Database

Sdílet
Vložit
  • čas přidán 22. 08. 2024

Komentáře • 68

  • @codingtechniques2220
    @codingtechniques2220  Před 11 měsíci +2

    Subscribe our channel for more videos youtube.com/@codingtechniques2220?si=kphuQ8XQGtjpPx8K
    src code link github.com/aliyusahaboadam/Admin_User_Registration_Login_Spring_Boot_Application

  • @rohitshukla001
    @rohitshukla001 Před 3 měsíci +3

    Video is slow and also Audio quality is poor else this, everything is on point. great content 👌

  • @mikoajjastrzebski9065
    @mikoajjastrzebski9065 Před 7 měsíci +1

    Thank You so much! The only tutorial that works for current version of spring security

  • @thesongsof..........7783
    @thesongsof..........7783 Před 6 měsíci +1

    really sir very very very very helpful video

  • @user-xk2hm2vy5t
    @user-xk2hm2vy5t Před 5 měsíci +1

    bro you are the best. The best infact

  • @zafaransari2855
    @zafaransari2855 Před 10 měsíci +1

    thank you sir .

  • @kaiservonwien4826
    @kaiservonwien4826 Před 10 měsíci +1

    Great video anyway, thanks to you

  • @pslvgaming8588
    @pslvgaming8588 Před 7 měsíci +2

    Thank you sir

  • @Errushijoshi
    @Errushijoshi Před 3 měsíci +1

    you are excellent!!

  • @juliotorres0101
    @juliotorres0101 Před 11 měsíci +1

    Thank you for you help

  • @Brookistaken
    @Brookistaken Před 3 měsíci +2

    when I open mySQL work bench and create the table, the table is not there. I followed the code exactly. did anyone experience this and how did you fix it?

    • @codingtechniques2220
      @codingtechniques2220  Před 3 měsíci +1

      You just have to create the DB and run the program, the table will automatically created

    • @Brookistaken
      @Brookistaken Před 3 měsíci +1

      @@codingtechniques2220 when I created the DB on MySQL workbench and run the code it works but i can not open the table to see the string that was created in User.java. when i delete the DB and run the code an error pops up saying there is no user DB. so it picks it up but it can not open it

  • @ashishkumarsrivastav9106
    @ashishkumarsrivastav9106 Před 9 měsíci

    Great🎉

  • @masekoamin3494
    @masekoamin3494 Před 6 měsíci +1

    Thank you sir!!. For me everything is working fine except the success handler.. aftr entering correct details it redirects to /error
    It seems as if the success handler is not working
    Can u kindly assist

  • @harishkumarsb3848
    @harishkumarsb3848 Před 4 měsíci +1

    Great Thank you,
    i have one question here, if i want to hit the post/get request from postman what changes should i make?
    Thanks in advance

  • @imkawtarr
    @imkawtarr Před 4 měsíci

    I cannot thank u enough!
    Just a question ( i want the admin to have acces to the users pages too what should i add?) thanks in advance !

    • @codingtechniques2220
      @codingtechniques2220  Před 4 měsíci

      For the user endpoint in security config where you call hasRole methods just add comma and ADMIN eg hasRole(USER, ADMIN)

  • @rajirajeswari2199
    @rajirajeswari2199 Před 6 měsíci +1

    Hello sir, where u created user details and user details service class?? I'm unable to see ..

  • @08_b_himanshusharma30
    @08_b_himanshusharma30 Před 8 měsíci +2

    in this where is the Postmapping(/login) which you used in login.html file at form tag ????

    • @codingtechniques2220
      @codingtechniques2220  Před 8 měsíci +1

      There is no post mapping for login spring security automatically handles the case

  • @Zhurman
    @Zhurman Před 4 měsíci +1

    Hello, Sir! Hello guys. Well, I’m writing in a case of issue. I have configured security filter chain, but login request always redirects me to login page. By debugger I can’t get to the point where I should take user info by name from repository. But when I set login by default it works. Maybe someone had same issue ?

    • @codingtechniques2220
      @codingtechniques2220  Před 4 měsíci +1

      Report it here in pictures chat.whatsapp.com/JMCCpFZeGTy9b4mQLVCRQO

  • @chienphung9633
    @chienphung9633 Před 5 měsíci +1

    i have a question, each time we register, we need fill in database with field role, it is not convinient

    • @codingtechniques2220
      @codingtechniques2220  Před 5 měsíci

      That's because the owner of the apps have to decide who is admin and who is not

  • @user-zk6mm6xb6j
    @user-zk6mm6xb6j Před 10 měsíci +2

    How to set the role as USER by default after registration?
    Thanks for the video though

    • @codingtechniques2220
      @codingtechniques2220  Před 10 měsíci +1

      You could simply set all the roles to users and change the needed one to admin in Database

    • @user-zk6mm6xb6j
      @user-zk6mm6xb6j Před 10 měsíci

      How can i set role to USER? I am new to spring boot 😅@@codingtechniques2220

    • @chiman75
      @chiman75 Před 9 měsíci +1

      i thought about this myself not really connected to this tutorial. 1 way i can think of (have not tried it myself) would be when delivering the app it would be delivered with 1 admin account. And that admin user can create other admins or set others as admin otherwise all others would be normal users.

    • @codingtechniques2220
      @codingtechniques2220  Před 9 měsíci +1

      @@chiman75 you could simply make all users to USER by registration and set the needed one to admin (it gives ability to modify admin, you can change your admin if the person is not longer suitable for the ADMIN )

    • @chiman75
      @chiman75 Před 9 měsíci +1

      @@codingtechniques2220 my idea was to make some app features only visible to admin. Admin can there grant or revoke admin or other rights or elevate read write privileges on the pages only accessible n visible to admins.

  • @eswarreddy5046
    @eswarreddy5046 Před 6 měsíci +1

    Hello sir,Cannot resolve parameter name for user_dto error occurred how to resolve it

  • @aniketnaphade1597
    @aniketnaphade1597 Před měsícem +1

    Hi sir faceing same error

    • @codingtechniques2220
      @codingtechniques2220  Před měsícem

      @@aniketnaphade1597 check the source code link github.com/aliyusahaboadam/Admin_User_Registration_Login_Spring_Boot_Application

  • @Hacquees
    @Hacquees Před 4 měsíci +1

    hey my index.html is getting open directly even login page is also working fine.can you help me ?

  • @RajeshChauhan-wy7yu
    @RajeshChauhan-wy7yu Před 11 měsíci +1

    Hello sir, i didn't catch how you resolve white level error please breif about this

    • @codingtechniques2220
      @codingtechniques2220  Před 11 měsíci

      By creating new authentication success handler and mapping for user and admin, the white lebel arror is test for login at path this "/"

  • @divyanuthakki1559
    @divyanuthakki1559 Před 5 měsíci +1

    Im getting login error

    • @codingtechniques2220
      @codingtechniques2220  Před 5 měsíci +1

      check this repository compare it with the code and check the tutorial github.com/aliyusahaboadam/Admin_User_Registration_Login_Spring_Boot_Application

  • @Know_by_AI
    @Know_by_AI Před 10 měsíci +1

    Hello sir we are modifying the role of the person but how can I get user as default when the person is registered

    • @codingtechniques2220
      @codingtechniques2220  Před 10 měsíci

      set the user role as null provide statements that if the user is null then redirect him to USER URL.
      And you can used form to accept the roles of person and in this case you have no authourity over your data everyone will every role.

    • @Know_by_AI
      @Know_by_AI Před 10 měsíci

      @@codingtechniques2220 thank you sir

    • @TranVanHuyPH
      @TranVanHuyPH Před 10 měsíci

      @@codingtechniques2220 Where should I handle this problem? securityconfig or customUserDetail?

  • @weekly_t_e_c_h6529
    @weekly_t_e_c_h6529 Před 10 měsíci +1

    Sir ,how to implement forgot password for the above project

    • @codingtechniques2220
      @codingtechniques2220  Před 10 měsíci

      here is the link for the forgot password Tutorial: czcams.com/video/lPu52kQ5Uuo/video.htmlsi=1MP0H4DqrKunUEy0

  • @pratikkhodke9666
    @pratikkhodke9666 Před 10 měsíci +1

    How to fetch, update and delete... please tell 🙌