mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 10:50:14 +01:00
📧 feat: disable login (ALLOW_EMAIL_LOGIN) (#1282)
* added ALLOW_EMAIL_LOGIN * update .env.example * fix(config) email login true by default * Update dotenv.md
This commit is contained in:
parent
1706886a64
commit
fdb65366d7
8 changed files with 14 additions and 3 deletions
|
|
@ -34,7 +34,7 @@ function Login() {
|
|||
{localize(getLoginError(error))}
|
||||
</div>
|
||||
)}
|
||||
<LoginForm onSubmit={login} />
|
||||
{startupConfig?.emailLoginEnabled && <LoginForm onSubmit={login} />}
|
||||
{startupConfig?.registrationEnabled && (
|
||||
<p className="my-4 text-center text-sm font-light text-gray-700">
|
||||
{' '}
|
||||
|
|
@ -44,7 +44,7 @@ function Login() {
|
|||
</a>
|
||||
</p>
|
||||
)}
|
||||
{startupConfig?.socialLoginEnabled && (
|
||||
{startupConfig?.socialLoginEnabled && startupConfig?.emailLoginEnabled && (
|
||||
<>
|
||||
<div className="relative mt-6 flex w-full items-center justify-center border border-t uppercase">
|
||||
<div className="absolute bg-white px-3 text-xs">Or</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue