Skip to content

Commit 173b28d

Browse files
committed
feat: Adjust Captcha image settings to improve security
1 parent f67eff5 commit 173b28d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/auth/captcha.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ impl Default for CaptchaImage {
1515
impl CaptchaImage {
1616
pub fn new() -> CaptchaImage {
1717
let captcha = CaptchaBuilder::new()
18-
.length(3)
19-
.width(130)
20-
.height(40)
18+
.length(5)
19+
.width(110)
20+
.height(35)
2121
.dark_mode(false)
22-
.complexity(1) // min: 1, max: 10
22+
.complexity(0) // min: 1, max: 10
2323
.compression(40) // min: 1, max: 99
2424
.build();
2525
let text = captcha.text.clone();

0 commit comments

Comments
 (0)