RocketChat / RocketChat/Rocket.Chat

Various profile issues caused by missing E-Mail address

Open
#9,390 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: authentication
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Our LDAP server doesn't contain any E-Mail information and we're using SSO via LDAP for login. Hence when a user tries to login for the first time a new account gets created within RC which doesn't have any E-Mail information. As we're no admins of the LDAP server we can't just add the missing E-Mail information there.

Now the missing E-Mail information seems to cause various issues within RC. The profile page can't be loaded and also the My Profile > Settings and Security settings can't be changed. For debugging purposes we've manually added the E-Mail information to one of our users and then the profile page was accessible again.

Furthermore our usernames have the form ntuser@company.com (which is not our actual E-Mail address...) but the profile page is complaining about the @ symbol in the username and greys out the save button so no changes can be made to the profile. Is there a way to strip away @company.com suffix from the RC username when doing SSO via LDAP?

Server Setup Information:
  • Version of Rocket.Chat Server: 0.60.1
Steps to Reproduce:
  1. Go to My Account
  2. Select Profile
Expected behavior:

Profile page gets shown and is editable

Actual behavior:

Error gets thrown in the console and profile page doesn't get shown.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Begin by reproducing the issue from My Account > Profile with an SSO-created account that has no email address, then inspect the console error and the profile and settings flows. Done means the profile page loads and remains editable without an email address, with the expected username behavior clarified.

Written by the indexing model from the issue text.

Assessment

Domain
authentication, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.