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:
@@ -53,7 +53,7 @@ function getCaptchaSrc(): string {
|
||||
}
|
||||
|
||||
function verifyCaptcha(value: string): boolean {
|
||||
return captcha.value === value.replace(/\s*/g, '').toUpperCase()
|
||||
return captcha.value.toLowerCase() === value.replace(/\s*/g, '').toLowerCase()
|
||||
}
|
||||
|
||||
export { login, logout, getLoginStatus, getUser, getUsername, getCaptchaSrc, verifyCaptcha }
|
||||
|
||||
Reference in New Issue
Block a user