feat: enable otp email and sms (#6260)

* feat: enable otp email and sms

* feat: enable otp factors in login settings

* remove tests without value

* translate second factors

* don't add new factors yet

* add comment

* add factors to docs

* backward compatible settings api

* compile tests

* add available 2fa types

* test: add mapping tests

---------

Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
Elio Bischof
2023-07-28 07:39:30 +02:00
committed by GitHub
co-authored by Livio Spring
parent d3e403f645
commit 31ec1d83b9
28 changed files with 696 additions and 124 deletions
+4 -2
View File
@@ -1849,8 +1849,10 @@
},
"SECONDFACTORTYPES": {
"0": "未知",
"1": "一次性密码 (OTP)",
"2": "指纹、安全密钥、Face ID 等"
"1": "身份验证应用程序的一次性密码(TOTP)",
"2": "指纹、安全密钥、Face ID 等",
"3": "电子邮件一次性密码(email OTP)",
"4": "短信一次性密码(SMS OTP)"
}
},
"LOGINPOLICY": {