Open manjitapandey opened 9 months ago
This is tricky as we don't use emails for login, we use OSM credentials. OSM does not provide the email address of the user from their API.
Two options I can think of:
Verify user exists
https://www.openstreetmap.org/user/USERNAMEHERE/
.Invite
https://www.openstreetmap.org/message/new/USERNAMEHERE
webpage.message[title]
and message[body]
.commit
.id
column.EDIT this approach will not work due to cross site scripting restrictions, duh! The only way would be via an API, which OSM is in the process of implementing.
Notification
/me/
endpoint: if the username matches an existing user and the user id is negative, then update to the correct user id in the table.Caveats
Note this requires adding an email service to FMTM, which we don't have currently, but will probably add.
Invite
I added this to the agenda for our next meeting to discuss.
Looking into it, I think sending a message via OSM also notifies the user via email!
So that could be the perfect solution - as long as the user has their email up to date in openstreemap 😄
The emails look like this:
Also of note, there is a proposal to make a proper API for OSM messages: https://wiki.openstreetmap.org/wiki/Messaging_API_proposal
Blocked by #1192
We won't go ahead with the idea above as it's very OSM-centric. We need more flexibility.
Reconsidered this after updates and team calls!
Unblocked by Messages API finally being merged!
https://github.com/openstreetmap/openstreetmap-website/issues/4509
Is your feature request related to a problem? Please describe. I should be able to invite users through emails. This feature should be added to manage project page by clicking on invite users. The new users will be invited adding username or email.
Additional context The backend task to invite user should be created.