feat(auth): 👷 Disable smtp auth
This commit is contained in:
@@ -50,9 +50,10 @@ export const SignInForm = ({
|
||||
setAuthLoading(false)
|
||||
}
|
||||
return (
|
||||
<Stack spacing="4">
|
||||
<Stack spacing="4" w="330px">
|
||||
<SocialLoginButtons />
|
||||
{process.env.NEXT_PUBLIC_SMTP_FROM && (
|
||||
{process.env.NEXT_PUBLIC_SMTP_FROM &&
|
||||
process.env.NEXT_PUBLIC_SMTP_AUTH_DISABLED !== 'true' && (
|
||||
<>
|
||||
<DividerWithText mt="6">Or with your email</DividerWithText>
|
||||
<HStack as="form" onSubmit={handleEmailSubmit}>
|
||||
|
||||
@@ -22,7 +22,10 @@ providers.push(
|
||||
})
|
||||
)
|
||||
|
||||
if (process.env.NEXT_PUBLIC_SMTP_FROM)
|
||||
if (
|
||||
process.env.NEXT_PUBLIC_SMTP_FROM &&
|
||||
process.env.NEXT_PUBLIC_SMTP_AUTH_DISABLED !== 'true'
|
||||
)
|
||||
providers.push(
|
||||
EmailProvider({
|
||||
server: {
|
||||
|
||||
@@ -58,6 +58,12 @@ Used for Google Fonts:
|
||||
|
||||
The following variables are only used for the builder.
|
||||
|
||||
### Email
|
||||
|
||||
| Parameter | Default | Description |
|
||||
| ------------------------------ | ------- | -------------------------------------- |
|
||||
| NEXT_PUBLIC_SMTP_AUTH_DISABLED | false | To disable the authentication by email |
|
||||
|
||||
### GitHub (optional)
|
||||
|
||||
Used for authenticating with GitHub. By default, it uses the credentials of a Typebot-dev app.
|
||||
|
||||
Reference in New Issue
Block a user