mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:07:31 +00:00
feat(api): add and remove OTP (SMS and email) (#6295)
* refactor: rename otp to totp * feat: add otp sms and email * implement tests
This commit is contained in:
@@ -46,12 +46,33 @@ func TestAMR(t *testing.T) {
|
||||
[]string{UserPresence},
|
||||
},
|
||||
{
|
||||
"otp checked",
|
||||
"totp checked",
|
||||
args{
|
||||
[]domain.UserAuthMethodType{domain.UserAuthMethodTypeOTP},
|
||||
[]domain.UserAuthMethodType{domain.UserAuthMethodTypeTOTP},
|
||||
},
|
||||
[]string{OTP},
|
||||
},
|
||||
{
|
||||
"otp sms checked",
|
||||
args{
|
||||
[]domain.UserAuthMethodType{domain.UserAuthMethodTypeOTPSMS},
|
||||
},
|
||||
[]string{OTP},
|
||||
},
|
||||
{
|
||||
"otp email checked",
|
||||
args{
|
||||
[]domain.UserAuthMethodType{domain.UserAuthMethodTypeOTPEmail},
|
||||
},
|
||||
[]string{OTP},
|
||||
},
|
||||
{
|
||||
"multiple (t)otp checked",
|
||||
args{
|
||||
[]domain.UserAuthMethodType{domain.UserAuthMethodTypeTOTP, domain.UserAuthMethodTypeOTPEmail},
|
||||
},
|
||||
[]string{OTP, MFA},
|
||||
},
|
||||
{
|
||||
"multiple checked",
|
||||
args{
|
||||
|
Reference in New Issue
Block a user