[Bug] Math captcha solved without equation result!
Closed this issue · 1 comments
J-Rios commented
Issue
Seems that an user could solve the math captcha by writting the math equation instead the result.
Reason
Once a message from a user that is solving a captcha is received, for both captcha mode "nums" or "math", Bot code first check if the message content has the number to solve, in the previous issue example, the expected solve number in this case is "8" and the user writes "56-48", containing a "8" on it, so it solves the captcha instead handle it like a "math" mode.
Bug located on code line:
TLG_JoinCaptchaBot/sources/join_captcha_bot.py
Line 1126 in 520381a