Explorar el Código

Make secure - no more silly hashes

master
Pete Shadbolt hace 6 años
padre
commit
5cf8016799
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      app.py

+ 2
- 2
app.py Ver fichero

@@ -3,7 +3,7 @@ from flask_redis import FlaskRedis
import json, abp, markdown
from pprint import pprint
import raussendorf
import humanhash
import uuid

DAY = 60*60*24
app = Flask(__name__)
@@ -11,7 +11,7 @@ redis = FlaskRedis(app)

@app.route("/")
def index():
secret, uuid = humanhash.uuid()
secret = str(uuid.uuid4())
return redirect("/{}".format(secret))

@app.route("/<uuid>")


Cargando…
Cancelar
Guardar