Update server.py

This commit is contained in:
Nova Cat 2025-01-14 20:44:25 -08:00
parent 7efcefc53b
commit 253bc08af4

View file

@ -40,7 +40,7 @@ def loadcert_backend():
random_name = ''.join(random.choice(string.ascii_lowercase+string.digits+string.ascii_uppercase) for i in range(8))
cert.save(homefolder + "/certs/" + random_name + "-chain.pem")
privkey.save(homefolder + "/certs/" + random_name + "-privkey.pem")
resp = make_response('<link rel="stylesheet" href="/style.css">Success!<br><br><p><a href="/" class=go>Go home</a></p>')
resp = make_response('<link rel="stylesheet" href="/style.css">Success!<br><br><p><a href="/" class=go style="color: white;">Go home</a></p>')
resp.set_cookie('certname',random_name)
return resp
else: