Skip to content
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

5815 signup specific domains #5916

Conversation

alihadimazeh
Copy link
Contributor

@alihadimazeh alihadimazeh commented Aug 9, 2024

resolves #5815

- added a row for the specific email domain sign up
- added corresponding locales
- added specific email domain sign up to site settings in `tenant.rb`
@farhatahmad
Copy link
Collaborator

I think the only thing i would change here is the wording "Specific Email Domain Sign Up" is very wordy. I would just use "Allowed Domains" or something simple like that. That'll require a few changes, including the Setting name itself

- changed all instances of previous name to AllowedDomains
Gemfile.lock Outdated Show resolved Hide resolved
@@ -319,7 +319,10 @@
"open": "Open Registration",
"invite": "Join by Invitation",
"approval": "Approve/Decline"
}
},
"allowed_domains": "Allow Specific Email Domains",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just put this as "Allowed Email Domains"

@@ -420,7 +423,8 @@
"privacy_policy_updated": "The privacy notice has been updated.",
"helpcenter_updated": "The help center link has been updated.",
"terms_of_service_updated": "The terms of service have been updated.",
"maintenance_updated": "The maintenance banner has been updated."
"maintenance_updated": "The maintenance banner has been updated.",
"allowed_domains_signup_updated": "The specific email domain sign up has been updated"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"The allowed email domains has been updated"

db/schema.rb Outdated
t.string "session_token"
t.datetime "session_expiry", precision: nil
t.datetime "session_expiry"
t.integer "status", default: 0
t.index ["email", "provider"], name: "index_users_on_email_and_provider", unique: true
t.index ["reset_digest"], name: "index_users_on_reset_digest", unique: true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be included

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the change should not be included, or the file itself?

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
34.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[3.0 feature request] Signup only with specific Email domains
2 participants