Asp.Net Core MVC & Identity UI - User Registration and Login

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

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

  • @CodAffection
    @CodAffection  Год назад +11

    goo.gl/RFY5C2 : Subscribe to CodAffection
    goo.gl/bPcyXW : Buy me a Coffee
    bit.ly/36IA1cH : MVC CRUD
    bit.ly/39B6xdh : Image Upload & Retrieve in MVC
    bit.ly/2yEPlpB : Convert MVC to Single Page with Ajax

  • @Johnl.jpg1
    @Johnl.jpg1 4 месяца назад

    Please make more tutorials like this, I believe many people, including myself found it useful and would appreciate your efforts!

    • @CodAffection
      @CodAffection  4 месяца назад +1

      Sure. working on such a tutorial.

    • @Johnl.jpg1
      @Johnl.jpg1 4 месяца назад

      @@CodAffection Thank you very much :)

  • @robertkaramagi6801
    @robertkaramagi6801 Год назад +13

    Very perfect tutorial. It will be good if you may take us through adding 2FA, Email Verification, and other useful security features in your upcoming videos.

  • @games5fun
    @games5fun Год назад +9

    Perfect tutorial .. probably the best that explains easily the registration and login using identity. It will be very useful if you could make videos for role based and email verification as well .. keep up the good work & thanks again

    • @CodAffection
      @CodAffection  Год назад +3

      Thanks for your kind words.
      Will consider your suggestion in future videos.

  • @angelsalazarrocha5448
    @angelsalazarrocha5448 Год назад +3

    I think it's a good idea to continue with the project! It will help a lot to see how these tools are used

  • @FnOTradingLearner
    @FnOTradingLearner Год назад +4

    With wonderful efforts to continue you can make videos of same thing of user authentication with roles and areas with different concepts like MVVM or MVVMS or MVC or MAUI or MAUI BLAZOR Hybrid etc. Means same thing with different methods and techniques and technology.
    Thanks for wonderful efforts.

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

      Good suggestion and thanks for your wonderful feedback.

  • @alexrippe2791
    @alexrippe2791 8 месяцев назад +4

    if you're having issues trying getting the tables to migrate to the database you need to modify the json file where he has "Server=(Local)\\sqlexpress". this will be the name of you server. open SQL server management studio and on the login screen you will see Sever. That is what needs to go there. everything else is the same

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

    yeah please extend this project with crud operations with a dashboard but without using any templates like syncfusion. :) Thumbs up! this is a great tutorial i have ever seen. awesome explanation.

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

    The best explanation I’ve seen! Good job 🎉

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

    El tutorial llegó en el momento correcto y justo en el que lo necesitaba 🌟, tiene poco tiempo así que si hubiese necesitado de él a principios de año, estuviese perdido

    • @lafabricadetuweb
      @lafabricadetuweb 8 месяцев назад

      Me gustaría importarme las tablas del tutorial a sql server. Por favor, ¿sabes donde se podrían descargar? Gracias

  • @fired_developer
    @fired_developer Год назад +8

    2-Factor Authentication and Profile Management please! 🙏

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

    the perfect channel for beginner ultimate🔥

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

    Amazing tutorial we need more of this topic

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

    Thank you so much very very helpful tutorial. It will be good if you may take us through adding 2FA, Email Verification, and other useful security features in your upcoming videos

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

    thank you so so much for this tutorial!!! I've been searching how to make the login to begin to login page and redirections flow.

  • @ZeeshanAhmad-mp8qt
    @ZeeshanAhmad-mp8qt Год назад

    Thanks amazing explanation and very easy to understand

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

    Awesome tutorial, thank you.

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

    Thank you very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very much.

  • @musazaidi110
    @musazaidi110 8 месяцев назад

    Bro this Video is Seriously Love

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

    Hello, thank you for taking the time to present this tutorial worked very great for me. I have a working login and register page...I am having trouble adding other pages, i.e, About us, and other pages

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

    perfect tutorial man thanks for the help

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

    Wow the video was very informative and enjoyable that you

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

    Really good explanation!

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

    I can't add identity there was error:
    there was an error running the selected code generator: 'package restore failed. rolling back package changes for 'auth system'

  • @rayzhu2105
    @rayzhu2105 11 месяцев назад +1

    amazing video

  • @farheenrehman2921
    @farheenrehman2921 10 месяцев назад +1

    Hi, I tried with the way shown in video, but my scaffold-ed login view is not getting reflected, Could you suggest what could be reason

  • @Msyoutube38
    @Msyoutube38 7 месяцев назад

    Awesome tutorial man! I do have a question: When we add [Authorize] part to HomeController ho does it know where to redirect?

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

    Excellent tutorial as usual! It would be amazing if you can make a step by step Role based ( super-admin, admin, user), Email confirmation ( which is the best SMTP for production , not too expensive??? ), Google, Facebook authentication, and CRUD operation for User by Admin . And also make the project publish through FileZilla let us say IONOS hosting with SQL Server! I could make a financial support one to one lesson , could I get a contact with you ?

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

    I have a problem for executing
    Update- Database

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

    You're the best bro!

  • @BeastsOfDread
    @BeastsOfDread Год назад +4

    at 14:27 how do you make the big "≠" sign or are im missing something?

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

    Good stuff. I'm trying to add this after i have already made model classes for user etc. How can i make it use that class?

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

    14:22 how did you make that different symbol?

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

    At 13:12, you have css in the site.css file. Can you please share

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

    next step, I noticed the Phone Number is not displayed once populated in the Index "profile" page. Would like for that to show from the db.

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

    Great content, thank you!

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

    Great tutorial. Can this be customised to use Postgres database?

  • @fl6x
    @fl6x 5 месяцев назад

    Thank you very much soo please How can I merge this to an existing project

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

    Hi please make a video on authentication and authorization using dotnet core 7 api and identity management

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

    amazing tutorial, thank you! I'm currently trying to determine how to make that logout button in the navbar dynamic so that it shows login when signed out. Any suggestions?

    • @xeebodog
      @xeebodog 11 месяцев назад +1

      in loginpartial.cshtml just made an if/else statement like this and it works
      @if (SignInManager.IsSignedIn(User))
      {

      Hello @UserManager.GetUserName(User)!



      Logout


      }

      else
      {

      Hello @UserManager.GetUserName(User)!



      Login


      }

  • @ellonmusketwannabe2201
    @ellonmusketwannabe2201 Год назад +3

    What is that 3 vertical lines with slash in the middle at 14:20 ?

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

    We are waiting the Upgraded version of this User Registration and Login
    thank you

  • @programmer5838
    @programmer5838 5 месяцев назад

    By Update-Database step I am getting this error
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

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

    Boom! 😄 Brilliant.

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

    Having problem with Update Database.
    Im using azure sql for database

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

    Great Tutorial🙏, but you lost me at 14:18. Can someone please fill me in? What happened?

  • @TensaeGirmaSeifu-hu1iq
    @TensaeGirmaSeifu-hu1iq 5 месяцев назад

    Super !!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

    Fantastic utility built in no time... Yes! certainly would like to see more features added to it e.g forgot password and confirmed email, also if possible kindly guide us how can we include this utility into an existing project without having to build it from scratch. Many Thanks.

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

      Sure, we'll extend this project by adding suggested features.

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

    Hi CodAffection,
    First of all, thanks for the tutorial! Quick and easily explained.
    One Q however. As per default identityserver takes your email-address as your username, now i've been toying around a little bit to enable the users to log in with their set username instead of email and display it on the top right.
    Allready tried to set a username and that worked, but then I was unable to log back in with the account...
    Any idea on where to find a good documentation about this or do you know the fix to this?

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

      How did you change it and did you resolve the issue?

  • @SheenaOrioque
    @SheenaOrioque 8 месяцев назад

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
    how to fix this? Please help

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

    Hello Codaffection --
    Could you plz do a demo for -- Angular and .NetCore 6/7 jWT Authentication Authorization and Members' Area[secure data from api] ?
    I am searching for 1 such extensive and complete example but haven't found any till now. It would be a great help. Looking for some assistance.
    Kindly reply

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

      sure, I thought about it.
      meanwhile you could check my videos with same topic in old version here (Angular 7, Web API).
      signup or user registration : bit.ly/2Zcfurk
      login : bit.ly/2P0mcgl
      role based authorization : bit.ly/2GmF7dx
      Happy coding.

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

      Thanks for the reply.
      Will eagerly await the mentioned demo discussion in your next one.

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

    Muito bom, como sempre

  • @TotoPopo-q8e
    @TotoPopo-q8e 11 месяцев назад

    Hi your video is very helpful can you please make a tutorial of how to implement tailwind css into a .net 7 mvc application ?

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

    whats that not triple line operator used in script tag? can someone explain that thank you

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

      I think I've seen what you are refering, I think it's my cursor upon a special symbol.
      could you give me the exact time?

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

    Great tutorial, wondering if it's possible to replace the password with a code that is sent to the users email instead? Each time the user wants to login, a code is sent to their email that is useable for 2 min.

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

    In my register.cshtml is not available while I am fetching pages & in your video it is showing at 5:47 minute.
    So what to be done now OR what is the solution?

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

    Yes, it helped me alot, I need existention of this, to whom I need help

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

    hi, when i was trying to run the update command on the console, i didn't get a error but also any database on sqlserver so i deleted \\sqlexpress on my connection string, and it worked. just want to let you know if someone's got the same issue.

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

    In 23:52 Label element, why do you have to put "First Name " or "Last Name" as value, it’s no difference with or without,like email and password.

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

    That's so great. Can you make a video with more permissions?

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

    Thank you so much for the video really helpful. How do I fetch the newly created first name and last name for the created user

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

      It's there inside registration page here : bit.ly/3LDospx
      or you might be looking for this.
      to get the last inserted user, try this inside Registrer page, OnGetAsync method.
      var NewlyCreatedUser= _userManager.Users.OrderByDescending(u => u.Id).FirstOrDefault();

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

      @@CodAffection thank you so much, is it the same for logged in user?

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

      @@michealojo yes.

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

    thanks for this video

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

    boom
    Love it!

  • @AbderrahmaneChafi-z4o
    @AbderrahmaneChafi-z4o Год назад

    Hello, How can I define the Identity login page route as a default route on my web application ?

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

    Hello great. On the other hand, Can i implement 'identity' in a existent aspnet web mvc project (-not core) or what alternative i have ?

  • @王智立-i8m
    @王智立-i8m Год назад

    謝謝你的教學視頻。

  • @civicsimohd
    @civicsimohd 7 месяцев назад

    can we use azure authintication with local db authorization ?

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

    Thanks for tutorial, I want to do this but with postgesql as database and MFA , can you make a tutorial

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

    Please provide two factor authentication and reset password video

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

    I tried this solution. Does it generate JWT token with claims ?

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

    I'm Interested in two-factor authentication

    • @CodAffection
      @CodAffection  Год назад +4

      Keep in touch, we'll be putting up a list of suggested features for voting.

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

    how to use PostgreSQL instead of sql server

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

    Hi tried this but after runthe project I am not getting url only localhost I given perfect connects I am using version 8 can any one please help me on this

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

    ty for amazing video but when i try to Update appsetting.json with command Update-Database and put the AuthDbContextConnection to Server=(local)\\sqlexpress; i get this error {Error Number:-1,State:0,Class:20
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 26 - Error Locating Server/Instance Specified)} plz help sir!

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

      Did you modify the db connection string according to your sql server instance?
      what name you've given while installing the sql server on your system?
      try these resources to correct your db connection string.
      stackoverflow.com/a/10479937/4133590

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

      @@CodAffection i chosen the name . (Dot) while installing the sql server should i choose the the name . (Dot) ?

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

      @@imanbayat3550 try it, if it is working go for it. althogh it is better to know the actual sql server instance name. did you try the given links.

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

      @@CodAffection thx maaaan :)

  • @rauljeezy529
    @rauljeezy529 Месяц назад

    ~I'm currently in the middle of creating this type of project, when updating the database I encountered an error: "Keyword not supported: 'trustedservercertificate'.", can you please explain on how I can get through this.

    • @CodAffection
      @CodAffection  Месяц назад

      Use following connection string.
      "Server=(local)\\sqlexpress; Database=[DBNAME]; Trusted_Connection=True; TrustServerCertificate=True; MultipleActiveResultSets=True"

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

    It doesnot work With .Net 8 I am getting bunch of Errors

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

    The connection string you have in the tutorial isn't working on my machine

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

      Did you change the server instance name according to your sql server.

  • @anand.mohan1
    @anand.mohan1 Год назад

    Add-Migration Build failed how to solve ?

  • @Json-redbeef
    @Json-redbeef Год назад

    how to switch the navigation reg/login without reloading the page every time?

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

    i have a issue with connecting the database
    migration done
    update database done
    but database is not created in SQL server
    help

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

    Thanks for the efforts made. Please, if possible, I would like this example, but with Blazor and api jwt

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

      You are welcome. thanks for the suggestion.

  • @anime-dx4tz
    @anime-dx4tz Год назад

    Please make a full User management system

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

    Thanks!

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

    there is a .cs the data folder?

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

    How can I change the tables names according to my preference before Updating the database from "AspNetRoleClaims"?
    Because when I try to change them, the app doesn't recognise the new table name

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

      where did you change the table name? it should be possible if you are doing it in the ef core framework.

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

      @@CodAffection I tried changing after Add-Migration but when I am testing the app, it keeps on looking a table named AspNetUsers to validate the credentials I am using to log in.
      Then when I am not changing any table, it works fine

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

    Is there a tutorial for Mac?

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

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 26 - Error Locating Server/Instance Specified)
    Got this error.
    Please help

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

      make sure that there is no error in your db connection string.

  • @murtazotoshniyozov4688
    @murtazotoshniyozov4688 8 месяцев назад

    awesome

  • @FRANZICTSI
    @FRANZICTSI 5 месяцев назад

    Video is super great tutorial sign me app for more tutorial hoping you can give upcoming project practice thank you!

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

    CAN I DO THIS ON NET 6.0????

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

    more tutorials!

  • @kholofeloklaas4467
    @kholofeloklaas4467 2 месяца назад

    I had an error after entering an user to register. Error :26 error locating sever/Instance Specified

    • @CodAffection
      @CodAffection  2 месяца назад

      Please check your connection string.

    • @kholofeloklaas4467
      @kholofeloklaas4467 2 месяца назад

      You mean by "Sever=(local)\\sqlexpress;Database =

    • @CodAffection
      @CodAffection  2 месяца назад

      @@kholofeloklaas4467 yes, change it according to your sql server connection details.

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

    hi bro I am getting some error with connecting the data base server

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

    Im getting error invalid login attempt

  • @vaibhavdobariya-b1k
    @vaibhavdobariya-b1k 2 месяца назад

    i have error in connect to database

  • @dr.furkhzeshan1426
    @dr.furkhzeshan1426 3 месяца назад

    Good

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

    Forgot password boss

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

    Role authentication

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

    Thank you! attach a crypto-wallet address, it will make it easier for many to send thanks

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

    WhaT?