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

Fix / refactor email whitelist and domain whitelist checks #1406

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

superhappychris
Copy link
Contributor

This is a fix for issue #1377

Steps to reproduce: set environment variable values for both EMAIL_DOMAIN_WHITELIST and EMAIL_WHITELIST. Attempt to sign up using an email address that matches only one of the whitelist values

Expected behavior: you are allowed to sign up

Actual behavior: you are blocked from signing up with error message: Email ${email} is not allowed to sign up.

This is a fix for issue mckaywrigley#1377 

Steps to reproduce: set environment variable values for both EMAIL_DOMAIN_WHITELIST and EMAIL_WHITELIST. Attempt to sign up using an email address that matches only one of the whitelist values

Expected behavior: you are allowed to sign up

Actual behavior: you are blocked from signing up with error message: `Email ${email} is not allowed to sign up.`
Copy link
Contributor

@fkesheh fkesheh left a comment

Choose a reason for hiding this comment

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

This looks good in my opinion. I tested it on my local, and also run it through AI.

@mckaywrigley mckaywrigley merged commit 360c260 into mckaywrigley:main Feb 13, 2024
im-calvin pushed a commit to im-calvin/chatbot-ui that referenced this pull request Feb 16, 2024
…ley#1406)

This is a fix for issue mckaywrigley#1377 

Steps to reproduce: set environment variable values for both EMAIL_DOMAIN_WHITELIST and EMAIL_WHITELIST. Attempt to sign up using an email address that matches only one of the whitelist values

Expected behavior: you are allowed to sign up

Actual behavior: you are blocked from signing up with error message: `Email ${email} is not allowed to sign up.`
Chr96er pushed a commit to Chr96er/chatbot-ui that referenced this pull request May 26, 2024
…ley#1406)

This is a fix for issue mckaywrigley#1377 

Steps to reproduce: set environment variable values for both EMAIL_DOMAIN_WHITELIST and EMAIL_WHITELIST. Attempt to sign up using an email address that matches only one of the whitelist values

Expected behavior: you are allowed to sign up

Actual behavior: you are blocked from signing up with error message: `Email ${email} is not allowed to sign up.`
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 participants