int required

This commit is contained in:
Morten Delenk 2016-06-12 18:07:45 +02:00
parent a33266ac0f
commit 27eb2c347a

View file

@ -9,9 +9,9 @@ from captcha.image import ImageCaptcha
import time, string
print("Content-type: text/html\r\n\r\n")
form=cgi.FieldStorage()
aid=form["aid"].value
aid=int(form["aid"].value)
try:
seed=form["seed"].value
seed=int(form["seed"].value)
random.seed(seed)
checkstr=list("".join(random.choice(string.digits+string.ascii_lowercase) for _ in range(5)))
if not checkstr == form["checkstr"].value: