C
C#4mo ago
Salight

How can i make email confirmation 1 in sql server

await _userManager.ConfirmEmailAsync(identityUser,verificationToken); i was thinking this code was going to do that but it doesn't apply in sql server how can i manage to change in database
No description
No description
5 Replies
Shazanman
Shazanman4mo ago
ConfirmEmailAsync returns an IdentityResult that you need to check it if it did change to the records or are you trying to force EmailConfirmation? you can also use IsEmailConfirmedAsync as the result for confirmation
Salight
SalightOP4mo ago
i am trying to force How can i make that 0 1
Shazanman
Shazanman4mo ago
then you just have to pass the verificationtoken in identityUser without that equality check? tbh why are you trying to force it? isn't that against the whole purpose of the Verify function?
Salight
SalightOP4mo ago
so here is the thing i added a verification token column if it is the same with the users input i want that 0 to be 1 it is equal already it is returning true i mean
Shazanman
Shazanman4mo ago
check for the IdentityResult value from ConfirmEmailAsync you can't just return true you need check for the return value also IsEmailConfirmedAsync can be used
Want results from more Discord servers?
Add your server