Тёмный

Edit identity user in asp net core 

kudvenkat
Подписаться 834 тыс.
Просмотров 53 тыс.
50% 1

Опубликовано:

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 49   
@rayt6867
@rayt6867 5 лет назад
Thanks for this impressive users tutorial, Great job! Your'e awesome!
@hamidrezayeganeh4219
@hamidrezayeganeh4219 5 лет назад
I think you are one of the best tutorial in RU-vid , thanks for every video one by one
@vaibhavtrikolikar4902
@vaibhavtrikolikar4902 14 дней назад
What a great Explanation Sir, Thank You for your efforts
@szarik5521
@szarik5521 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 лет назад
The best tutorials in RU-vid , 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
@husamkibro6184
@husamkibro6184 5 лет назад
The best tutorial, I have a question why you use IList for Roles and List for claims Thx
@Csharp-video-tutorialsBlogspot
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 14 дней назад
@@Csharp-video-tutorialsBlogspot Thank Your Sir for cleaning last doubt also 😃
@kha88kha88
@kha88kha88 5 лет назад
Thank you , we need custom authentication by Access token. Thanks again :)
@Csharp-video-tutorialsBlogspot
Sure Khaled - We will discuss Access tokens in our upcoming videos. Great suggestion. Thank you.
@AbdullahKhan-hj9oq
@AbdullahKhan-hj9oq Год назад
Many many thanks, get id from your code and my problem have been resolved.
@sangameshwar2678
@sangameshwar2678 3 года назад
great explanation..
@coder71pstu18
@coder71pstu18 5 лет назад
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
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 лет назад
@@Csharp-video-tutorialsBlogspot, my dear online teacher, we have to wait for your next videos. Thanks...
@Csharp-video-tutorialsBlogspot
As promised here is the video that explains DELETE functionality. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-MhNfyZGfY-A.html
@omarazeez4790
@omarazeez4790 5 лет назад
please how to use angular or vue.js or pug.js in mvc core thanks
@misajohncarlo4449
@misajohncarlo4449 6 месяцев назад
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.
@asaad1985v2
@asaad1985v2 5 лет назад
Thank you ...
@nys8260
@nys8260 4 года назад
Thank You ♥
@m16averick
@m16averick 4 года назад
Luv ya bud! :*
@kalulu5057
@kalulu5057 4 года назад
Why we have to use EditUserViewModel and not ApplicationUser model directly? Thanks for the tutorial.
@nickeax
@nickeax 3 года назад
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 3 года назад
@@nickeax thank you🙏🏻
@acousticbrothers1491
@acousticbrothers1491 4 года назад
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 4 года назад
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 4 года назад
@@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 лет назад
Why are we using IList Roles instead of List Roles?
@Csharp-video-tutorialsBlogspot
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 3 года назад
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 года назад
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.
@lordjim9971
@lordjim9971 5 лет назад
For what "else" at 14:31 ? Usualy you don't use it.
@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
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
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.
@ghazanfarkhan3068
@ghazanfarkhan3068 4 года назад
Is there any way to download code of this series?
@jemschaudhary5922
@jemschaudhary5922 Год назад
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 4 года назад
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 года назад
userClaims.Select(x => x.Value).ToList() Why Did We use it like that i did not understand why
Далее
Delete identity user in asp net core
6:18
Просмотров 38 тыс.
Add or remove users from role in asp net core
24:30
Просмотров 84 тыс.
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
Просмотров 1,5 млн
Manage user claims in asp net core
17:27
Просмотров 65 тыс.