mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-06 07:21:24 +08:00
Added lowercase letters to captcha
This commit is contained in:
@@ -101,7 +101,7 @@ function randomColor(start: number, end: number): string {
|
||||
}
|
||||
|
||||
function getCaptcha(width: number, high: number, num: number): Captcha {
|
||||
const CHARTS = '23456789ABCDEFGHJKLMNPQRSTUVWXYZ'.split('')
|
||||
const CHARTS = '23456789ABCDEFGHJKLMNPRSTUVWXYZabcdefghijklmnpqrstuvwxyz'.split('')
|
||||
|
||||
const canvas = document.createElement('canvas')
|
||||
const ctx = canvas.getContext('2d') as CanvasRenderingContext2D
|
||||
|
||||
Reference in New Issue
Block a user