|
@@ -2,6 +2,7 @@
|
|
|
# Author: Farooq Karimi Zadeh
|
|
|
# Email: fkz@riseup.net
|
|
|
# See LICENSE for licence information
|
|
|
+import pickle
|
|
|
import cherrypy # <3
|
|
|
import random
|
|
|
import os
|
|
@@ -207,7 +208,7 @@ class Veil:
|
|
|
pass_hash = sha512(password.encode()).hexdigest()
|
|
|
if username == "tomato" and pass_hash == self.config.tomato_pwd_hash:
|
|
|
cherrypy.session["login?"] = "tomato"
|
|
|
- return "Welcome Neo!"
|
|
|
+ return "Welcome Tomato!"
|
|
|
with self.env.begin(db=self.admin_db) as txn:
|
|
|
the_hash = txn.get(username)
|
|
|
if the_hash and the_hash.decode() == pass_hash:
|