Skip to content

feat: enforce single-device login on session creation - #1453

Open
github-actions[bot] wants to merge 1 commit into
version-15from
backport-1452-to-version-15
Open

feat: enforce single-device login on session creation#1453
github-actions[bot] wants to merge 1 commit into
version-15from
backport-1452-to-version-15

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Backport of #1452 to version-15.


Clear all other sessions of a user when they log in, using frappe.sessions.clear_sessions with force=True to bypass the simultaneous_sessions offset that let a second device survive under deny_multiple_sessions. Publish a realtime event after commit so connected devices learn immediately that their session was cleared.

Clear all other sessions of a user when they log in, using
frappe.sessions.clear_sessions with force=True to bypass the
simultaneous_sessions offset that let a second device survive under
deny_multiple_sessions. Publish a realtime event after commit so
connected devices learn immediately that their session was cleared.

(cherry picked from commit a35536b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant