mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core&ui: add error & fix error notification (#464)
This commit is contained in:
1 parent
a2ea3812df
commit
534a634028
14 files changed
+123
-76
No files matched your search
@@ -13,6 +13,15 @@ class TokenModel {
|
||||
static TYPE_LOSTPASS = 5;
|
||||
static TYPE_EXPORT = 6;
|
||||
static TYPE_IMPORT = 7;
|
||||
static TYPE_TEXTS = {
|
||||
[TokenModel.TYPE_SESSION]: 'Session',
|
||||
[TokenModel.TYPE_REGISTRATION]: 'Registration',
|
||||
[TokenModel.TYPE_CHANGEMAIL]: 'Change Email',
|
||||
[TokenModel.TYPE_OAUTH]: 'OAuth',
|
||||
[TokenModel.TYPE_LOSTPASS]: 'Lost Password',
|
||||
[TokenModel.TYPE_EXPORT]: 'Export',
|
||||
[TokenModel.TYPE_IMPORT]: 'Import',
|
||||
};
|
||||
|
||||
static async add(
|
||||
tokenType: number, expireSeconds: number, data: any, id = String.random(32),
|
||||
|
||||
Reference in new issue
Block a user