fix: Account risk page change secret failed

pull/15014/head
wangruidong 2025-03-12 15:59:18 +08:00 committed by w940853815
parent 153be1508f
commit 3d28e255c0
1 changed files with 2 additions and 1 deletions

View File

@ -130,9 +130,10 @@ class RiskHandler:
def handle_change_password(self):
asset = self.asset
execution = AutomationExecution()
account = self.asset.accounts.get(username=self.username)
execution.snapshot = {
"assets": [str(asset.id)],
"accounts": [self.username],
"accounts": [str(account.id)],
"type": AutomationTypes.change_secret,
"secret_type": "password",
"secret_strategy": "random",