Improve User Registration With Verify/Confirm Email Flow With ASP.NET Core Identity and Web API

  Рет қаралды 3,663

Code Maze

Code Maze

Күн бұрын

Пікірлер: 17
@CodeMaze
@CodeMaze 6 ай бұрын
Thank you all for watching and for your support. ►► If you want to check out all our courses you can do that here: courses.code-maze.com/courses/
@10Totti
@10Totti 6 ай бұрын
Good tutorial thanks!
@CodeMaze
@CodeMaze 6 ай бұрын
You're welcome!
@GabyLangis
@GabyLangis 4 ай бұрын
awesome video!! is there a way to add time to the email token ? in my testing i forgot 2 times to confirm the email and when on doing something else when i came back to confirm the email 1 hour later the token was expired this is why i was wondering...
@CodeMaze
@CodeMaze 4 ай бұрын
Hi. Yes there is a way. Please check the: "Modifying Lifespan of the Email Token" section of my article: code-maze.com/email-confirmation-aspnet-core-identity/
@GabyLangis
@GabyLangis 3 ай бұрын
@@CodeMaze Thanks man you are the best!! x)
@prmep476
@prmep476 4 ай бұрын
What you have in your custom class Message ?
@CodeMaze
@CodeMaze 4 ай бұрын
It is the part of the Email Service project. Just properties like (To, Subject, Content...) and some other stuff. Nothing too related to the confirm/verify implementation.
@AhmedAlkurdi7
@AhmedAlkurdi7 Ай бұрын
@@CodeMaze can you show us the code in class Message Please
@kakhachaduneli5296
@kakhachaduneli5296 4 ай бұрын
Hello, first of all thanks. Some part of the code is added here, which you did not record in the previous registration and authorization videos. :(
@CodeMaze
@CodeMaze 4 ай бұрын
Hi. You are very welcome. Any specific part you are pointing at? As far as I remember, everything needed for this functionality to be implemented is recorded.
@kakhachaduneli5296
@kakhachaduneli5296 4 ай бұрын
@@CodeMaze Here is an example: I could not see where this record was : await _userManager.AddToRoleAsync(user, "Visitor");
@CodeMaze
@CodeMaze 4 ай бұрын
I see, but it really doesn't affect any functionality from this video. It is just assigning the role to the user, nothing more.
@kristiadhy
@kristiadhy 3 ай бұрын
I've tried this, but I got an error on the verification. I've checked and checked again between the token generated and the token when confirmed, and they're identical. I'm still not sure what's going on.
@kristiadhy
@kristiadhy 3 ай бұрын
I've finally figured it out! The issue was that I mapped the DTO to the model first and then executed the CreateAsync method. Then, before I sent the email confirmation, I did the mapping again, which caused the user model that created the token was different.
@CodeMaze
@CodeMaze 3 ай бұрын
I am glad you resolved the issue. You can always use the source code, if you are patreon member. It can help greatly.
Role Based Authorization With Identity and ASP.NET Core Web API
11:23
User Registration in Asp.Net Core Identity
38:45
CodAffection
Рет қаралды 4,8 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Sending Emails in ASP.NET Core using Gmail | Quick, Free and Easy
9:46
Programming with Felipe Gavilan
Рет қаралды 1,5 М.
Send Email with a .NET 6 Web API using Mailkit & SMTP 📧
22:02
Patrick God
Рет қаралды 76 М.
I'll Create a Todo List API with Angular and HTTP Client!
28:43
Tech Developer
Рет қаралды 54
Implementing JWT Authentication in ASP.NET Core
23:51
Nick Chapsas
Рет қаралды 46 М.
Implementing API Gateway With Ocelot in ASP.NET Core
13:26
Code Maze
Рет қаралды 7 М.
The TRUTH About Golang Backend Frameworks
6:31
Melkey
Рет қаралды 134 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН