Edit identity user in asp net core

Поділитися
Вставка
  • Опубліковано 26 січ 2025

КОМЕНТАРІ • 49

  • @vaibhavtrikolikar4902
    @vaibhavtrikolikar4902 4 місяці тому

    What a great Explanation Sir, Thank You for your efforts

  • @hamidrezayeganeh4219
    @hamidrezayeganeh4219 5 років тому +2

    I think you are one of the best tutorial in UA-cam , thanks for every video one by one

  • @rayt6867
    @rayt6867 5 років тому +7

    Thanks for this impressive users tutorial, Great job! Your'e awesome!

  • @szarik5521
    @szarik5521 3 роки тому +3

    I like how we repeat same pattern many times. Even if I cant understand everything 1st time I can do it again and again. :P

  • @danishbaharia8927
    @danishbaharia8927 2 роки тому

    Very nice explanation of Identity tutorial from scratch . Thank you sir.

  • @upgradeu3928
    @upgradeu3928 5 років тому +3

    The best tutorials in UA-cam , thanks U

    • @jaycekoda6056
      @jaycekoda6056 3 роки тому

      you probably dont care but if you are bored like me atm then you can stream pretty much all of the new movies and series on instaflixxer. Have been streaming with my gf during the lockdown :)

    • @archerchance6214
      @archerchance6214 3 роки тому

      @Jayce Koda Yup, been using InstaFlixxer for months myself :)

    • @gerardobruno8670
      @gerardobruno8670 3 роки тому

      @Jayce Koda Definitely, been using instaflixxer for since november myself :)

    • @brayancolin9377
      @brayancolin9377 3 роки тому

      @Jayce Koda definitely, have been watching on InstaFlixxer for years myself :D

  • @AbdullahKhan-hj9oq
    @AbdullahKhan-hj9oq Рік тому

    Many many thanks, get id from your code and my problem have been resolved.

  • @husamkibro6184
    @husamkibro6184 5 років тому +7

    The best tutorial,
    I have a question why you use IList for Roles and List for claims
    Thx

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому +18

      Thank you Husam. There is no specific reason. As you know programming to an interface is always better as apposed to specific concrete type. Sorry for being a bit inconsistent here.

    • @vaibhavtrikolikar4902
      @vaibhavtrikolikar4902 4 місяці тому

      @@Csharp-video-tutorialsBlogspot Thank Your Sir for cleaning last doubt also 😃

  • @kha88kha88
    @kha88kha88 5 років тому +4

    Thank you , we need custom authentication by Access token. Thanks again :)

  • @sangameshwar2678
    @sangameshwar2678 3 роки тому

    great explanation..

  • @coder71pstu18
    @coder71pstu18 5 років тому +2

    Dear sir, thanks for your upcoming videos. But we have a question on your series. We observed, every section of this tutorial series, you have avoided deletion functionality. How much longer to implement the delete? As well as, we have started several asp.net Core applications project within your tutorial, thanks.

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому

      What a timing? In our next video in this series we discuss exactly that. How delete IdentityUser from AspNetUsers database table using the asp.net core Identity API. I will share the link here in the comment after it is uploaded. Thank you for asking.

    • @coder71pstu18
      @coder71pstu18 5 років тому +1

      @@Csharp-video-tutorialsBlogspot, my dear online teacher, we have to wait for your next videos. Thanks...

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому +2

      As promised here is the video that explains DELETE functionality.
      ua-cam.com/video/MhNfyZGfY-A/v-deo.html

  • @misajohncarlo4449
    @misajohncarlo4449 10 місяців тому

    Hello, I am following this course and I just want to ask how can I update the role of an existing user. I want to be able to update their role by clicking in a dropdown of roles that I created.

  • @omarazeez4790
    @omarazeez4790 5 років тому +1

    please how to use angular or vue.js or pug.js in mvc core thanks

  • @lordjim9971
    @lordjim9971 5 років тому +2

    For what "else" at 14:31 ? Usualy you don't use it.

  • @acousticbrothers1491
    @acousticbrothers1491 5 років тому

    Hello Dear Kudvenkat,
    Is this secured to pass user id parameter to the route? What else can we do to secure all these "updating user" part?
    If you answer, I'll be so happy. Thank you.

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому +1

      Great question. No, not very secure. However, with ASP .NET Core it's easy to encrypt the ID. Encrypting and Decryption in ASP .NET Core is discussed in Part 120. You can find all the asp .net core course videos, slides and text articles in sequence on the following page. Hope you will find it handy.
      www.pragimtech.com/courses/asp-net-core-mvc-tutorial-for-beginners/
      If you have time, can you please leave your rating and valuable feedback on the reviews tab. It really helps us. Thank you. Good luck and all the very best with everything you are doing.

    • @acousticbrothers1491
      @acousticbrothers1491 5 років тому

      @@Csharp-video-tutorialsBlogspot ​ Thank you for you answer, I will check those videos.
      By the way, for SignalR there are not much resources to learn and all current Resources are include .net framework, not .net core and most likely they are "chat" systems. But do you have any articles or videos about SignalR -SQL realtime relationship? For like, notification systems?

  • @fair_net4336
    @fair_net4336 5 років тому +1

    Why are we using IList Roles instead of List Roles?

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому +2

      You can use List if you want to. I just wanted to show we can use either of them. List implements IList. So you could use List or IList, although as you might already know programming against an interface is always much better than programming against a specific implementation. Hope this answers your question.

  • @conaxlearn8566
    @conaxlearn8566 4 роки тому

    Still has the same question: Why are we not doing if(ModelState.IsValid) like we did in the videos earlier in this series?

    • @Lenkopenko
      @Lenkopenko 3 роки тому

      From what I understood, it's because validation is done in userManager.UpdateAsync(user);

  • @nickolaki
    @nickolaki 4 роки тому +1

    Hi, when I change UserName to something different than the email I can't log in?

    • @conaxlearn8566
      @conaxlearn8566 4 роки тому

      Can't log in with the new UserName? I am able to.

  • @kalulu5057
    @kalulu5057 4 роки тому

    Why we have to use EditUserViewModel and not ApplicationUser model directly?
    Thanks for the tutorial.

    • @nickeax
      @nickeax 4 роки тому +2

      The ApplicationUser is solely for representing a User data entity. The ViewModel is only for dealing with information gathered or displayed by the view, and it may deal with different fields than ApplicationUser, depending on requirements. It's best to use models that relate to their domain of operation.

    • @kalulu5057
      @kalulu5057 4 роки тому

      @@nickeax thank you🙏🏻

  • @nys8260
    @nys8260 4 роки тому

    Thank You ♥

  • @ghazanfarkhan3068
    @ghazanfarkhan3068 4 роки тому

    Is there any way to download code of this series?

  • @asaad1985v2
    @asaad1985v2 5 років тому

    Thank you ...

  • @ymtan
    @ymtan 5 років тому

    Dear Venkat - Could you kindly explain the following code that are present in EditUser HttpPost Action. Why are we copying Email, UserName, and City from the model object into the respective properties on the user object ???
    user.Email = model.Email;
    user.UserName = model.UserName;
    user.City = model.City;
    var result = await userManager.UpdateAsync(user);

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому +2

      Because UpdateAsync() method of UserManager service only accepts an instance of type ApplicationUser and not EditUserViewModel. Hence we copy the data over to user object which is of type ApplicationUser. Hope this answers your question.

    • @ymtan
      @ymtan 5 років тому

      ​What I mean is when we update Email, UserName, and City on the user interface, those value that we type on the UI will be copied into the respective properties on the user object is it ???

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому +3

      Yes, the values from the UI are automatically passed to EditUserViewModel through model binding and we are copying them over to the User object which is then passed to UpdateAsync() method of UserManager service. The UserManager service in tun updates the data in the underlying AspNetUsers database table. Hope this now clear to you.

  • @m16averick
    @m16averick 4 роки тому

    Luv ya bud! :*

  • @jemschaudhary5922
    @jemschaudhary5922 2 роки тому

    Thanks for the video! Very helpful. Can anyone know how to update customized appUser with PK = UserName (new column)? I am using updateAsync(user) and its getting failed with error msg= "Failed:DuplicateUserName". Any suggestions?

  • @hossammetwally07
    @hossammetwally07 5 років тому

    Severity Code Description Project File Line Suppression State
    Error CS0411 The type arguments for method 'IModelExpressionProvider.CreateModelExpression(ViewDataDictionary, Expression)' cannot be inferred from the usage. Try specifying the type arguments explicitly. EmployeeManagement Active
    I got this error in EditUser.cshtml in line one when we set the model EditUserViewModel

  • @ilyaselaissi1628
    @ilyaselaissi1628 2 роки тому +1

    userClaims.Select(x => x.Value).ToList() Why Did We use it like that i did not understand why