int required
This commit is contained in:
parent
a33266ac0f
commit
27eb2c347a
1 changed files with 2 additions and 2 deletions
|
@ -9,9 +9,9 @@ from captcha.image import ImageCaptcha
|
||||||
import time, string
|
import time, string
|
||||||
print("Content-type: text/html\r\n\r\n")
|
print("Content-type: text/html\r\n\r\n")
|
||||||
form=cgi.FieldStorage()
|
form=cgi.FieldStorage()
|
||||||
aid=form["aid"].value
|
aid=int(form["aid"].value)
|
||||||
try:
|
try:
|
||||||
seed=form["seed"].value
|
seed=int(form["seed"].value)
|
||||||
random.seed(seed)
|
random.seed(seed)
|
||||||
checkstr=list("".join(random.choice(string.digits+string.ascii_lowercase) for _ in range(5)))
|
checkstr=list("".join(random.choice(string.digits+string.ascii_lowercase) for _ in range(5)))
|
||||||
if not checkstr == form["checkstr"].value:
|
if not checkstr == form["checkstr"].value:
|
||||||
|
|
Loading…
Reference in a new issue