mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
only create keys if they don't have any #225
This commit is contained in:
parent
6424fc07db
commit
10b9f859a9
1 changed files with 4 additions and 3 deletions
|
@ -776,6 +776,7 @@ def finalize_user_setup(user):
|
|||
from app.activitypub.signature import RsaKeys
|
||||
user.verified = True
|
||||
user.last_seen = utcnow()
|
||||
if user.private_key is None and user.public_key is None:
|
||||
private_key, public_key = RsaKeys.generate_keypair()
|
||||
user.private_key = private_key
|
||||
user.public_key = public_key
|
||||
|
|
Loading…
Add table
Reference in a new issue