Skip to content
Snippets Groups Projects
Commit 57e72cba authored by dev-chris's avatar dev-chris
Browse files

Update user whitelist reject message

  + Don't expose all whitelisted domains
parent 6678fab3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -902,7 +902,7 @@ class User < ActiveRecord::Base
if domain_matches?(allowed_domains, self.email)
valid = true
else
error = "is not whitelisted. Email domains valid for registration are: #{allowed_domains.join(', ')}"
error = "domain is not authorized for sign-up"
valid = false
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment