Browse Source

use correct param

main
cellarspoon 3 years ago
parent
commit
0ad3cea543
No known key found for this signature in database GPG Key ID: 3789458B3D0C410
  1. 4
      app.py

4
app.py

@ -14,9 +14,9 @@ from wtforms import HiddenField, RadioField, StringField
from wtforms.validators import DataRequired
def rand():
def rand(length=30):
"""Generated random secret."""
return "".join(random.choices(string.ascii_uppercase + string.digits, k=N))
return "".join(random.choices(string.ascii_uppercase + string.digits, k=length))
app = Flask(__name__)

Loading…
Cancel
Save