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

Invite URL redirects to login page #1774

Open
fpapadamis opened this issue May 2, 2024 · 7 comments
Open

Invite URL redirects to login page #1774

fpapadamis opened this issue May 2, 2024 · 7 comments
Labels
🐞 bug Something isn't working

Comments

@fpapadamis
Copy link

fpapadamis commented May 2, 2024

Describe the bug

When inviting new members to the organization, having Allow user signups disabled, the generated URL redirects to the login page, thus the user invited is not able to create an account. This happens when using email invitation as well as direct URL invitations.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Admin Panel.
  2. Disable Allow user signups.
  3. Go to Access Control.
  4. Click on + Add Member.
  5. FIll in the user's email address.
  6. Click on Add Member.
  7. Use the URL provided in the email to create an account or, if SMTP is not configured, use the generated URL directly.

Expected behavior

When the user browses the URL, it is expected that they will be able to create a new account by entering their password etc.

Platform you are having the issue on:

Self-hosted Infisical using docker compose.

@linear linear bot added the 🐞 bug Something isn't working label May 3, 2024
@akhilmhdh
Copy link
Member

Did you set the SITE_URL environment variable

@fpapadamis
Copy link
Author

Yes, I have set the SITE_URL environment variable. The URL is generated correctly.

@akhilmhdh
Copy link
Member

akhilmhdh commented May 14, 2024

Hey @fpapadamis

I have tested the workflow and it seems to be working. The login page pops up when you have already an account. Are you sure the given email as never been used. Only for a new user the signup page pops up

Removing from org or doesn't remove the user.

@fpapadamis
Copy link
Author

Hi @akhilmhdh, I have tested it with email addresses that have never been used and with addresses that have been used and have been removed. They both redirect to the login page. This bug has also been brought to attention in the Slack channel from other members.

@akhilmhdh
Copy link
Member

akhilmhdh commented May 15, 2024

Have you by chance disabled signups in your admin panel @fpapadamis

May i know which message are referring to in slack. I would love to fix this issue. It's just that i can't reproduce the same in my side.

@fpapadamis
Copy link
Author

Sorry @akhilmhdh, I forgot to include that signups are disabled.
I am refering to this thread in Slack.
I am updating the issue description.

@akhilmhdh
Copy link
Member

akhilmhdh commented May 15, 2024

@fpapadamis Ok so that's why its being redirect to the login.

You need to allow signup and then inside Restrict signup by email domain(s) you need to configure the email you want to restrict to control invitation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants