element-hq / element-hq/synapse

Modules system: callback for `on_login` which includes the deviceName from the client

Open
#10,487 0 comments 0 reactions 0 assignees View on GitHub
A-Login A-Modules T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#10487](https://github.com/matrix-org/synapse/issues/10487).

---

I'm looking at https://matrix-org.github.io/synapse/develop/modules.html and don't see a callback for `on_login`. I'd like a callback that contains the `deviceName` for the user logging in.

cc @babolivier @chagai95

Contributor guide

Open the contributing guide

Research direction

Start with the modules documentation at modules.html and investigate how login-related callbacks are exposed. Define the requested on_login callback behavior and how the client's deviceName should be passed to it; done means the documented callback provides that value to modules.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.