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

DEFAULT_LOGIN_METHOD env for when mail otp isn't available (self-hosted) #7092

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

gptlang
Copy link

@gptlang gptlang commented Nov 3, 2024

When self hosting, SMTP isn't supported yet. The default email based login doesn't work. Login by email is just a click away but it would be easier if that could just be made default.

This change makes it such that we can simply add

LOGIN_PASSWORD_ONLY=true

to the environment to switch the defaults around.

@gptlang gptlang marked this pull request as ready for review November 3, 2024 04:15
@haiodo haiodo requested a review from lexiv0re November 4, 2024 04:53
@lexiv0re
Copy link
Collaborator

lexiv0re commented Nov 4, 2024

Hello @gptlang , thanks for your contribution!

dev/prod/src/platform.ts Outdated Show resolved Hide resolved
server/front/src/starter.ts Outdated Show resolved Hide resolved
@aonnikov
Copy link
Member

aonnikov commented Nov 8, 2024

Just an idea, can we use SES url to determine if we should use OTP login method? If we don't have email service configured, then we should not have SES url and OTP is not possible.

@lexiv0re
Copy link
Collaborator

lexiv0re commented Nov 8, 2024

@aonnikov yeah, that's a good idea. I thought about this too and it appears we don't currently have SES url in our front service config file. So we'd have to add SES_URL to the front only to check whether OTP is supported or not. Why I probably would't want to expose it right now is that with the upcoming changes in the account we may immediately have other OTP delivery methods connected to various social logins other than email (e.g. telegram) so it might become a little bit tricky then.

@gptlang gptlang marked this pull request as draft November 10, 2024 00:29
@gptlang gptlang marked this pull request as ready for review November 10, 2024 00:56
@gptlang gptlang changed the title LOGIN_PASSWORD_ONLY env variable for self hosting without mail DEFAULT_LOGIN_METHOD env for when mail otp isn't available (self-hosted) Nov 10, 2024
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.

4 participants