Skip to content

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

Merged
av-dev2 merged 1 commit into
Aakvatech-Limited:version-15-betafrom
av-dev2:feat_changes
Aug 7, 2026
Merged

feat: enforce single-device login on session creation#1452
av-dev2 merged 1 commit into
Aakvatech-Limited:version-15-betafrom
av-dev2:feat_changes

Conversation

@av-dev2

@av-dev2 av-dev2 commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

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.
@av-dev2 av-dev2 added the backport-to-version-15 Production branch label Aug 7, 2026
@av-dev2
av-dev2 merged commit 09c078f into Aakvatech-Limited:version-15-beta Aug 7, 2026
3 of 4 checks passed
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Successfully created backport PR for version-15:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-version-15 Production branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant