Skip to content

Commit

Permalink
Revise commit 6dd6b40
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Oct 15, 2024
1 parent 8c704de commit 522bdf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/globaleaks/handlers/auth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def login(session, tid, username, password, authcode, client_using_tor, client_i

State.totp_verify(user.two_factor_secret, authcode)

crypto_prv_key = ''
user_key = GCE.derive_key(password.encode(), user.salt)
if user.crypto_prv_key:
crypto_prv_key = GCE.symmetric_decrypt(user_key, Base64Encoder.decode(user.crypto_prv_key))
Expand Down

0 comments on commit 522bdf1

Please sign in to comment.