Update server.py

This commit is contained in:
Nova Cat 2025-01-14 20:42:23 -08:00
parent 6e34c499ed
commit 7efcefc53b

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("<meta http-equiv=\"refresh\" content=\"0; url=//\" />Success!")
resp = make_response('<link rel="stylesheet" href="/style.css">Success!<br><br><p><a href="/" class=go>Go home</a></p>')
resp.set_cookie('certname',random_name)
return resp
else: