-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: captcha use newest cacheManager component (#3570)
* feat: captcha use newest cacheManager component * fix: baseDir is directory
- Loading branch information
1 parent
c3dd094
commit 2ffce0a
Showing
7 changed files
with
85 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
import { CaptchaOptions } from '../interface'; | ||
|
||
export const captcha: CaptchaOptions = { | ||
default: { | ||
size: 4, | ||
noise: 1, | ||
width: 120, | ||
height: 40, | ||
export default { | ||
captcha: { | ||
default: { | ||
size: 4, | ||
noise: 1, | ||
width: 120, | ||
height: 40, | ||
}, | ||
image: { | ||
type: 'mixed', | ||
}, | ||
formula: {}, | ||
text: {}, | ||
expirationTime: 3600, | ||
idPrefix: 'midway:vc', | ||
} as CaptchaOptions, | ||
cacheManager: { | ||
clients: { | ||
captcha: { | ||
store: 'memory', | ||
}, | ||
}, | ||
}, | ||
image: { | ||
type: 'mixed', | ||
}, | ||
formula: {}, | ||
text: {}, | ||
expirationTime: 3600, | ||
idPrefix: 'midway:vc', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters