mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 08:44:40 +01:00
Forgot to save encrpyted data
This commit is contained in:
parent
db862d24c2
commit
cc91bf7b82
1 changed files with 1 additions and 2 deletions
|
@ -52,7 +52,7 @@ class Authenticator:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
encrypted_secret = md5(secret_code.encode('utf-8')).hexdigest()
|
encrypted_secret = md5(secret_code.encode('utf-8')).hexdigest()
|
||||||
t = (name, secret_code, image,)
|
t = (name, encrypted_secret, image,)
|
||||||
query = "INSERT INTO applications (name, secret_code, image) VALUES (?, ?, ?)"
|
query = "INSERT INTO applications (name, secret_code, image) VALUES (?, ?, ?)"
|
||||||
try:
|
try:
|
||||||
GK.create_sync("TwoFactorAuth", None)
|
GK.create_sync("TwoFactorAuth", None)
|
||||||
|
@ -89,7 +89,6 @@ class Authenticator:
|
||||||
"""
|
"""
|
||||||
secret_code = self.get_secret_code(uid)
|
secret_code = self.get_secret_code(uid)
|
||||||
if secret_code:
|
if secret_code:
|
||||||
secret_code = md5(secret_code.encode("utf-8")).hexdigest()
|
|
||||||
found = False
|
found = False
|
||||||
(result, ids) = GK.list_item_ids_sync("TwoFactorAuth")
|
(result, ids) = GK.list_item_ids_sync("TwoFactorAuth")
|
||||||
for gid in ids:
|
for gid in ids:
|
||||||
|
|
Loading…
Add table
Reference in a new issue