验证码优化
This commit is contained in:
1 parent
f489a3553c
commit
4a3bb84aa4
17 files changed
+156
-430
No files matched your search
Generated
-7
@@ -17,7 +17,6 @@
|
||||
"@capgo/capacitor-updater": "^8.51.10",
|
||||
"@ckeditor/ckeditor5-vue": "^8.2.0",
|
||||
"@element-plus/icons-vue": "^2.3.2",
|
||||
"@fingerprintjs/fingerprintjs": "^5.2.0",
|
||||
"axios": "^1.19.0",
|
||||
"ckeditor5": "^48.4.0",
|
||||
"dompurify": "^3.4.13",
|
||||
@@ -2675,12 +2674,6 @@
|
||||
"vue": "^3.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@fingerprintjs/fingerprintjs": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@fingerprintjs/fingerprintjs/-/fingerprintjs-5.2.0.tgz",
|
||||
"integrity": "sha512-j+2nInkwCQNTJcNhOjvkGM/nLRTuGJTC6xai4quqvUpjob2ssrGwBZjS7k55nOmKvge7qvJT2nS3i/IRvQSTQA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@floating-ui/core": {
|
||||
"version": "1.8.0",
|
||||
"resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.8.0.tgz",
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
"@capgo/capacitor-updater": "^8.51.10",
|
||||
"@ckeditor/ckeditor5-vue": "^8.2.0",
|
||||
"@element-plus/icons-vue": "^2.3.2",
|
||||
"@fingerprintjs/fingerprintjs": "^5.2.0",
|
||||
"axios": "^1.19.0",
|
||||
"ckeditor5": "^48.4.0",
|
||||
"dompurify": "^3.4.13",
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
import FingerprintJS from '@fingerprintjs/fingerprintjs'
|
||||
|
||||
const fingerprint = FingerprintJS.load()
|
||||
|
||||
/** A pseudonymous, client-generated identifier used only to bind short-lived login challenges. */
|
||||
export async function getLoginDeviceId(): Promise<string> {
|
||||
try {
|
||||
return (await fingerprint).get().then((result) => result.visitorId)
|
||||
} catch {
|
||||
// Privacy extensions may block fingerprinting. The captcha remains usable with IP/session binding.
|
||||
return ''
|
||||
}
|
||||
}
|
||||
Loaded 3 of 17 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user