Create a new separated ticket based on the suggestion in the provided issue in order to…
- User
Create a new separated ticket based on the suggestion in the provided issue in order to report a bug with: Title, Description, Steps To Reproduce.
- Assistant
Issue Title
Users are not automatically logged out after deleting their own account
Issue Description
Describe the Bug
When a user with admin privileges deletes their own account, they are not automatically logged out of the platform. This can lead to runtime errors and unexpected behavior since the system continues to operate as if the user still exists. For a better UX/UI experience and to prevent potential issues, the system should automatically log out the user immediately after they delete their own account.
Expected Behavior
- When a user deletes their own account, they should be immediately logged out of the platform.
- The session should be invalidated to prevent any runtime errors or unauthorized access to the system.
Actual Behavior
- The user continues to remain logged in even after deleting their account.
- This can lead to runtime errors and potential system instability.
Steps to Reproduce
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.