|
|
@@ -1,8 +1,3 @@
|
|
|
-import os
|
|
|
-import sqlite3
|
|
|
-import hashlib
|
|
|
-import threading
|
|
|
-
|
|
|
from route.tool.func import *
|
|
|
from route.tool.mark import load_conn2, namumark
|
|
|
|
|
|
@@ -118,9 +113,9 @@ elif what_i_do == '7':
|
|
|
hashed = hashlib.sha256(bytes(user_pw, 'utf-8')).hexdigest()
|
|
|
else:
|
|
|
if sys.version_info < (3, 6):
|
|
|
- return sha3.sha3_256(bytes(data, 'utf-8')).hexdigest()
|
|
|
+ hashed = sha3.sha3_256(bytes(data, 'utf-8')).hexdigest()
|
|
|
else:
|
|
|
- return hashlib.sha3_256(bytes(data, 'utf-8')).hexdigest()
|
|
|
+ hashed = hashlib.sha3_256(bytes(data, 'utf-8')).hexdigest()
|
|
|
|
|
|
curs.execute("update user set pw = ? where id = ?", [hashed, user_name])
|
|
|
elif what_i_do == '8':
|