matrix-corporal icon indicating copy to clipboard operation
matrix-corporal copied to clipboard

User e-mail field for first login and password reset

Open blaluc opened this issue 4 years ago • 2 comments

Hi, I would need to pre-populate the server with a set of user that will be authorized to use the system. Each user has a user-id, a display name and an e-mail address. Is it possible, using matrix-corporal, to configure a policy whithout specifying the password (or specifying a random generated one) so as that at the first login the user can set a new password and confirm it by following the validation link received by e-mail? If not, which approach would you suggest?

Many thanks!

(the stack would includes ma1sd from your awesome ansible playbook...)

blaluc avatar Apr 08 '20 20:04 blaluc

Hi!

matrix-corporal can/will create users that it finds in the policy and assign a display name (and even a profile photo).

It can't currently manage email addresses for users though. Binding 3pids like email and phone numbers goes through some few other APIs and possibly depends on an identity server and manual confirmation of email/phone-number ownership.

I guess what we could do is, try to write to the user_threepids Postgres table (and possibly to user_threepid_id_server) directly. This is very Synapse specific, however. It also sounds a little dangerous. Doing it would require that matrix-corporal gets Postgres support first. As of now, we try to keep things fairly homeserver-independant -- while we do currently call into some Synapse-specific APIs, we never access the homeserver database.. I'm not sure messing with the database is something we'd like to do.

I think it's unfortunate that 3pids are separated like that and there's the whole Identity Server mess..

spantaleev avatar Apr 09 '20 09:04 spantaleev

3pids can also be managed through the admin APIs, but that's also Synapse-specific.

KB1RD avatar Aug 20 '20 19:08 KB1RD