-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require email address to match domain #975
Comments
👍 Looks like a great settings-based feature! |
@gmsecrieru Could you please give some example on this requirement? Maybe I could work on this! Thankx =) |
@Ribeiro Well, I think there's more to the picture than meets the eye, but to get things moving you could:
Feel free to ping us on the Demo Server should you have any questions, and thanks for your help! |
Definately sounds like a useful feature, just a few thoughts. First on features. Domain lockdown should not be to a single domain, it should be a list you can optionally add multiple domains to, bonus points if they accept regex. An option to negate the list to turn it into a blacklist could be handy for some people. Then just a thought on implementation, how does this interact with the other login methods(Google, github, etc)? Easiest option is to have it work only with local logins, perhaps with a warning if you enable the feature while you have a third party sign in option enabled? The more useful, but perhaps complex, option could be to have it apply to these alternative login methods where it makes sense(for example gmail as that is also still an email address). These are just some ramblings, feel free to ignore part or all of the above message. |
@emcguinness Thanks for putting this down! 👍 for allowing a list of domains, but that might require a few tweaks on the RocketChat.Settings behavior or a new type of setting -- just a guess here, would have to dig further to confirm. Pertaining to other logins methods, I see at least two roads:
Maybe we should stick with a simpler/less complex scenario for this feature at this point, so that we can have more people contributing :) |
Thanks for working on this! As a lazy way of implementing a list if that settings type doesn't yet exist would be ask for a comma-delimited string. In case they add spaces you could trim after you split on the comma.
|
@gmsecrieru I was just taking a look at the code and it seems I need manipulate:
Am I taking the right approach? Please, let me know. Thankx ! |
@Ribeiro Maybe we can leverage on configuration, looks like we have |
@gmsecrieru So on Rocket.Chat/server/lib/accounts.coffee we would use: Accounts.config({ Am I on the right direction here? ;) |
@gmsecrieru What do you think? Is there a domain whitelist? =) |
@Ribeiro Sorry, been busy setting up unit tests. I will have this reviewed ASAP. Thanks again for your effort! |
@gmsecrieru I´ve tried the meteor restrictCreationByEmailDomain approach but it refuses to accept a function as argument. It only accepts a string as argument. =( |
When registering for an account, it would be great to restrict that ability to only users of a certain email domain.
The text was updated successfully, but these errors were encountered: