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 database5 Replies
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
i am trying to force
How can i make that 0 1
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?
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
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