I am trying to enable TwoFactor after Create user for sms code verify.
await UserManager.SetTwoFactorEnabledAsync(user.Id, true);
This is my UserStore(SportUserStore):
public class SportUserStore<T> : IUserPasswordStore<T>, IUserSecurityStampStore<T>, IUserTwoFactorStore<T, string>,
IUserRoleStore<T>, IUserLoginStore<T>, IUserPhoneNumberStore<T>, IUserEmailStore<T>, IUserStore<T> where T : FrUser
and the problem is I need fill this two method in UserStore(SportUserStore)
public Task SetTwoFactorEnabledAsync(T user, bool enabled)
{
throw new NotImplementedException();
}
public Task<bool> GetTwoFactorEnabledAsync(T user)
{
throw new NotImplementedException();
}
Have anyone solution for this problem ?
I am using
Microsoft.AspNet.Identity.Core v2.2.2
Microsoft.AspNet.Identity.Owin v2.2.2