core&ui: add webauthn support (#484)

Co-authored-by: panda <panda_dtdyy@outlook.com>
Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
pandaandundefined authored and GitHub committed 2023-01-23 17:49:40 +08:00
1 parent 3d3a5480e3
commit d069fe127b
29 files changed
+621 -195

No files matched your search

+2
View File
@@ -13,6 +13,7 @@ class TokenModel {
static TYPE_LOSTPASS = 5;
static TYPE_EXPORT = 6;
static TYPE_IMPORT = 7;
static TYPE_WEBAUTHN = 8;
static TYPE_TEXTS = {
[TokenModel.TYPE_SESSION]: 'Session',
[TokenModel.TYPE_REGISTRATION]: 'Registration',
@@ -21,6 +22,7 @@ class TokenModel {
[TokenModel.TYPE_LOSTPASS]: 'Lost Password',
[TokenModel.TYPE_EXPORT]: 'Export',
[TokenModel.TYPE_IMPORT]: 'Import',
[TokenModel.TYPE_WEBAUTHN]: 'WebAuthn',
};
static async add(