User Sign-Up 🚀 Verify/Confirm Email & Forgot/Reset Password with a .NET 6 Web API

Поделиться
HTML-код
  • Опубликовано: 27 янв 2025

Комментарии • 85

  • @PatrickGod
    @PatrickGod  Год назад

    🚀 Join the .NET Web Academy with a 30% discount - closing soon!
    👉 www.dotnetwebacademy.com/courses/academy?coupon=dnwas23yt

    • @IdealCreativeApp
      @IdealCreativeApp Год назад

      in the blazor ecommerce course you did not implement it. and you also didn't put in Google login, that's missing. Udemy.
      and the application you will update to. version 8?
      add at least password recovery

  • @eddyelamin9015
    @eddyelamin9015 3 месяца назад

    Came here after doing the Blazor e commerc course. I glad i found this video because i am working on an app with better auth, I used your method and Gmail’s SMTP!
    Thank you Patrick!

  • @ebarednaxela
    @ebarednaxela 2 года назад +1

    I just felt I became God in user authentications after watching this. Thank you so much Patrick! Happy New Year!

  • @AnthonyGriggs
    @AnthonyGriggs 2 года назад +1

    Thanks!

    • @AnthonyGriggs
      @AnthonyGriggs 2 года назад +1

      Thanks for all your hard work in creating great content for Blazor! I've subscribed to a couple of your lessons via Udemy when I first started learning Blazor from MVC. I am hoping that someday you can tackle Passwordless Authentication/ Fido2/ WebAuthn in a Blazor WASM app with a Hosted Asp.Net Identity Server that we've implemented in your previous tutorials with JWT... I've managed to piece it together somewhat to where it is workable. But all the examples I've come across are MVC and am surprised I've not seen anything like this in the Blazor space! I mean really Blazor's cutting edge... it should be at the forefront of passwordless!

    • @PatrickGod
      @PatrickGod  2 года назад +2

      Wow! Thank you sooo much! I highly appreciate that! 😊
      Let me put the passwordless authentication on my backlog. It's an interesting topic, for sure. Cheers!

  • @krogilds
    @krogilds Год назад +2

    Very nice video, good pace, well explained and understandable. Thank you Patrick.

  • @m.alighasemian3452
    @m.alighasemian3452 Год назад +1

    that was amazing man, appriciate the concept

  • @hiyaitsciaran
    @hiyaitsciaran 2 года назад +8

    Brilliant work Patrick!
    I've been having issues rebuilding my website (& another project) for a while now but following along with this video, I managed to get it all sorted out and connected to my database in less than an hour!
    Your tutorials are clearly laid out so it's easy to follow and it's almost effortless. Thank you!
    I was wondering, would you be able to do a tutorial like this one (user registration and login and database connectivity via Entity Framework) that includes the ability to Login with Google & Facebook.. and potentially store the user information in the database once authenticated?
    There are a lot of other tutorials on RUclips that supposedly offer that already but with .NET 6 I've been running into strange problems and finding it difficult to 'convert' some of the code from MVC projects, so that it's compatible with just an API/Controller. I understand this may be a big ask but it's driving me mad!
    Thanks so much for all your work that you do to help us all learn easier. You're awesome :)

    • @PatrickGod
      @PatrickGod  2 года назад +2

      Wow, Ciaran, thank you so much for your amazing feedback! Really means a lot to me. Authentication with Google (Twitter, etc.) is already on the roadmap. So, stay tuned. It is coming. Cheers! 😊

    • @hiyaitsciaran
      @hiyaitsciaran 2 года назад +2

      @@PatrickGod
      You're welcome!
      I have a habit of going very in-depth with.. well everything really, so having a solid foundation to learn from is mandatory in my mind.. that's where your tutorials come into play.
      That's great to hear!
      I'm very much looking forward to learning more from you and using this new knowledge to incorporate into my own projects.
      Stay awesome!😁

  • @tommcmeekin1
    @tommcmeekin1 2 года назад

    Hey Patrick, once more, I want to thank you for creating such a clear video. 👏

  • @abdullahal-nahian
    @abdullahal-nahian 2 года назад +3

    Hi Patrick, I am a huge fan of your work, I was that hoping you would make a video that shows the whole process of JWT + Login + Local Storage that will save userid in the order table of blazor ecommerce once an user orders a product. Thank you so much for your effort. ❤❤❤

  • @jerry9548
    @jerry9548 2 года назад

    18:37 it almost never works with EF as dependencies. In my case the rebuild solution is not a viable option and will lead to the same error. I found on SO that you have to:
    1. Right click the project > Select "Unload Project"
    2. Check the project file if all the dependencies are there
    3. If they are there > Right click > "Reload Project"
    4. Works again
    I hate this but there are solution for this. Though all the problems I encountered also happened with the Enterprise Edition so all editions are bad in that regard.

  • @digitaldaridesatv1545
    @digitaldaridesatv1545 2 года назад +3

    Thank you Patrick!

  • @mehmetfatihgok6665
    @mehmetfatihgok6665 9 месяцев назад

    Thank you for your simple and understandable explanation, best regards

  • @keifling3
    @keifling3 2 года назад

    really love your guides. thank you so much. I will likely be doing the udemy course soon.

  • @samuelcatlow
    @samuelcatlow 2 года назад

    Amazing content, Thanks for the quick and robust tutorial.

  • @syikinxxi6003
    @syikinxxi6003 Год назад +1

    Hi Patrick, i hope one day you will make a video that similar to this but with Repository pattern / Solid principles instead of fat controller. Thanks in advance and i am really one of the biggest fan of yours!

  • @thotchs4116
    @thotchs4116 2 года назад +1

    Good job Patrick.

  • @albinsmajli1644
    @albinsmajli1644 2 года назад

    I appreciate your job, It helped me so much greets from UBT

  • @HiroonWijekoon
    @HiroonWijekoon 2 года назад

    Very clear and on point!

  • @surakshachoudhary2880
    @surakshachoudhary2880 Год назад

    At 14:10 when you set the Users property using a => shortcut, doesn't that make it a readonly property since => means Users only has a getter? If so, then how are we able to modify Users later?

  • @mdanwarulkarim6200
    @mdanwarulkarim6200 2 года назад

    we are waiting for more of your videos!

  • @siddhantshukla1730
    @siddhantshukla1730 2 года назад +1

    Watching your first video 😊 . And it was amazing 🔥 make me subscribe immediately 👍

    • @PatrickGod
      @PatrickGod  2 года назад +1

      Awesome! Thank you so much!! 😀

  • @andreaskroll
    @andreaskroll 2 года назад

    At 32:35 you create a verification token purely by random 64 characters. With a large userbase and/or long running app you risk duplicate keys. you could check if the key already exists, but why dont you just use a Guid in Textform? As network equipment, and current time are part of creating a Guid it is collision free per definition.

  • @nic.2246
    @nic.2246 2 года назад

    I love you! Thanks for all!

  • @wang88
    @wang88 Год назад

    Love you Patrick YOU ARE MY HERO~😎

  • @andreaskroll
    @andreaskroll 2 года назад

    Great content!
    At 26min mark you compare emails if they already exist. This should be a string.compare with case insensitive compare rather than a == . otherwise you can use same email with different casing

    • @andrewshirley9240
      @andrewshirley9240 2 года назад

      This actually isn't necessarily true (and isn't true here). It's an EF expression, so it actually gets interpreted to `email = @email` in the database query. And it depends on the database you're using of course, but SQL Server string comparison is case insensitive by default.

  • @mtranchi
    @mtranchi 2 года назад +2

    Yeah I'm definitely getting funky behavior with VS 2022. Each version had different mess-ups. Blazor is the worst handled by the IDE. Goes to show how much work is behind getting everything to work right.

    • @PatrickGod
      @PatrickGod  2 года назад

      Thanks for sharing that. 😁

    • @Denvercoder
      @Denvercoder 2 года назад

      You should have seen the state of dotnet 6-7 years ago. Every time we hired a new dev we had to spend like 2 weeks getting everything installed and running on their machine. In comparison modern dotnet is dreamy. 😂

  • @godwinmensah1230
    @godwinmensah1230 Год назад +1

    Thank you. Amazing content

  • @Mo-ef9yt
    @Mo-ef9yt 2 года назад +1

    Great tutorial 👍🏿

    • @PatrickGod
      @PatrickGod  2 года назад

      Glad you liked it! Thank you very much!

  • @MrLeadVideo
    @MrLeadVideo 2 года назад +4

    Hi Patrick, could you update your courses in udemy and complete the work you're done for those courses?

  • @paul-rw5cj
    @paul-rw5cj Год назад

    In case anyone want to send an email with the confirmation link, the verify method should be a Get method. It took me like 30 minutes to realize why it wasnt working :))

  • @muralikrishnachowdarypolin5601
    @muralikrishnachowdarypolin5601 2 года назад +1

    Hi how to verify phone number and use phone number as primary contact like when login time we use phone numbers and password to login

  • @unkn0wnrge189
    @unkn0wnrge189 2 года назад +1

    I have heard very bad about Blazor performance compared to a Vue or React front-end, can you enlight me about it?

  • @brahimaboumohamed1284
    @brahimaboumohamed1284 10 месяцев назад

    Thank you Sir! But how to implement views?? Thanks.

  • @angelcasanchez7229
    @angelcasanchez7229 2 года назад +1

    Muchas gracias Patricio Dios ❤️

  • @perfectigbadumhe113
    @perfectigbadumhe113 2 года назад

    great tutorial really helpful please can you do a tutorial on how to consume api's that have multiple headers in dotnet

  • @shahabjoon201
    @shahabjoon201 2 года назад

    Hello dear Mr.God,
    I hope everything goes well for you and yours,
    I would like to ask you, if it is possible, make a video about using "record" and whats the best practice of use it inside the code also about the "with",
    Thanks in advanced
    Shahab

  • @jerkoviskov5379
    @jerkoviskov5379 Год назад

    Hey Patrick, how to send email with token where user can sent it back to endpoint ResetPassword ?

  • @_MoshikoAz_
    @_MoshikoAz_ 2 года назад

    thanks, any chances for tutorials on mac with m1's ?

  • @naveenchitti6363
    @naveenchitti6363 2 года назад +1

    Please create tutorial on uploading single and multiple files. Reading csv file and uploading to database.

    • @yovanies2798
      @yovanies2798 2 года назад

      Hey yeah @patrick it would be great an api with .Net6, for file upload. or that users can change their image.

  • @tmpmus5985
    @tmpmus5985 2 года назад +1

    Thank you

  • @umangshrestha4426
    @umangshrestha4426 2 года назад +1

    What is the purpose of passwordSalt ?

  • @haianh247
    @haianh247 2 года назад +1

    very nice tutorial ! can we have tutorial about frontend with this backend some how :)

    • @PatrickGod
      @PatrickGod  2 года назад

      Thanks! What would you like to see? Angular, React, Blazor, ...? 😀

    • @haianh247
      @haianh247 2 года назад

      @@PatrickGod angular if possible thanks you for reply :D

  • @yashyadav7927
    @yashyadav7927 4 месяца назад

    Great thanks❤

  • @bswill5077
    @bswill5077 2 года назад

    mhm do you prefer creating your own authentication service or you mostly use identity on your projects?

  • @JoseAlvarez-dl3hm
    @JoseAlvarez-dl3hm 2 года назад

    Is this something you do in production or just as a pet project? Cause in prod you use Identity Framework for all this stuff. My question would be if this would be something you would do if you are already using entity framework.

  • @cissemy
    @cissemy 2 года назад +1

    Thanks

  • @parthsavliya4441
    @parthsavliya4441 2 года назад

    broooo 😍 thx 😍

  • @sponzorusa8660
    @sponzorusa8660 2 года назад

    Super 😁

  • @LifeWithSeb99
    @LifeWithSeb99 11 месяцев назад

    Will this work in .NET 8 where a lot of this is set up out of the box?

  • @Rajkumar32356
    @Rajkumar32356 6 месяцев назад

    Hi sir how to extract jwt token in postman Authorization bearer token

  • @Dartarok999
    @Dartarok999 2 года назад

    patrick god, could you help me, making a video explaining how to save multiple files with inputfile but save them in a local folder and show that local path in the database, it would be very helpful since I've been trying for a long time... with blazor webassembly

  • @jimfaker
    @jimfaker 2 года назад

    Hi! Could you please do a video creating an IdentityServer with openiddict? I'm seeing that Microsoft is dropping support for it and it would be a good idea to learn how to make a working alternative. Thanks 😃

  • @janisakmentins6414
    @janisakmentins6414 2 года назад

    Hello. Thanks for the tutorial. I have it working and have the full Request Url sent with an email. However clicking the link just gives a 405 error and user does not get verified. Any suggestions how to solve this? Thanks

  • @iqphi9797
    @iqphi9797 2 года назад

    Hi could you do a video of authentication with Auth0 in .net6 and rbac access in your own backend

  • @DigitalNomadOnFIRE
    @DigitalNomadOnFIRE 2 года назад

    Your LEDs should not be visible, they should always be reflected / use a cover...

  • @agraiskr
    @agraiskr 2 года назад

    18:19 - the same shit with 17.2.3

  • @davidbasic1988
    @davidbasic1988 2 года назад

    SMS OTP please. with razorpage.

  • @energy-tunes
    @energy-tunes 7 месяцев назад

    imagine ur last name being god

  • @mohammedalking421
    @mohammedalking421 4 месяца назад

    wtf how can people get job when they write logic in controller this is i dont understand

  • @cameronmorton8921
    @cameronmorton8921 2 года назад

    Anyone who knows the email address of the user be able to change the password. Isn't this insecure?

  • @newraze
    @newraze 2 года назад

    I gave u Thumb up before watching. I hope you dont use this bullshit microsoft identity implementation but your own custom ;) greeetings

  • @dotnetdevni
    @dotnetdevni 2 года назад +1

    Why show them this you should be using Identity framework and not a custom method custom methods so easy to hack

  • @oxdan9101
    @oxdan9101 2 года назад

    Hello i have a question,
    What if i get an exception on my DataContext.cs
    Can i handle it on UserController.cs sending back to the user a StatusCode 500 ?
    The problem with that is my Cnstructor gets a return value, i dont know if it's the best way to handle this.. wanted to handle exceptions when access to database is compromised.

  • @piapinification
    @piapinification 2 года назад

    hello, is it valid to create a hash with DateTime.Now().ToString() instead of Convert.ToHexString(Random....) in the Forgot Password Feature or is there a problem?

  • @Altbergz
    @Altbergz 2 года назад

    You can use:
    using hmac = new- hmacsha512();
    (Without {...})
    The scope will be the scope of the variable🙃🙃🙃

  • @rijalelfikri4507
    @rijalelfikri4507 2 года назад +1

    Thank you Patrick!

    • @PatrickGod
      @PatrickGod  2 года назад

      You're very welcome! 😊

  • @jawhermahmoudi8649
    @jawhermahmoudi8649 Год назад +1

    Thank you