Skip to content

Commit 1e0574c

Browse files
committed
fix: delay addUserAction at User::setPassword till after response
Change-Id: I173159a759b0ad8eb16c5ce71f049c433ff1be9b
1 parent 59d839c commit 1e0574c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/libs/Auth/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ public function setPassword(string $password): void
15631563
$current_user->getId()
15641564
);
15651565
}
1566-
AddUserAction::dispatch($this->getId(), IPHelper::getUserIp(), $action, $this->email);
1566+
AddUserAction::dispatch($this->getId(), IPHelper::getUserIp(), $action, $this->email)->afterResponse();
15671567
}
15681568

15691569
/**

0 commit comments

Comments
 (0)