Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ PUBLIC_ADMIN_PASSWORD=123456
PUBLIC_COMPANY_NAME=SciSharp STACK
PUBLIC_COMPANY_WEBSITE=https://scisharp.github.io/SciSharp/
PUBLIC_PLUGIN_DEFAULT_ICON=https://avatars.githubusercontent.com/u/44989469?s=200&v=4
PUBLIC_ALLOW_SIGNUP=false
PUBLIC_ALLOW_SIGNUP=true
PUBLIC_AUTH_ENABLE_SSO=true
PUBLIC_AUTH_ENABLE_FIND_PWD=true
16 changes: 10 additions & 6 deletions src/routes/(authentication)/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
PUBLIC_ADMIN_USERNAME,
PUBLIC_ADMIN_PASSWORD,
PUBLIC_COMPANY_NAME,
PUBLIC_ALLOW_SIGNUP
PUBLIC_ALLOW_SIGNUP,
PUBLIC_AUTH_ENABLE_SSO,
PUBLIC_AUTH_ENABLE_FIND_PWD,
} from '$env/static/public';
import { onMount } from 'svelte';
import {
Expand Down Expand Up @@ -190,7 +192,7 @@
{!isSubmitting ? 'Log In' : 'Log In...'}
</Button>
</div>

{#if PUBLIC_AUTH_ENABLE_SSO == 'true'}
<div class="mt-4 text-center">
<h5 class="font-size-14 mb-3">Sign in with</h5>

Expand All @@ -212,12 +214,14 @@
</li>
</ul>
</div>

{/if}
{#if PUBLIC_AUTH_ENABLE_FIND_PWD == 'true' }
<div class="mt-4 text-center">
<Link href="recoverpw" class="text-muted"
><i class="mdi mdi-lock me-1" /> Forgot your password?</Link
>
<Link href="recoverpw" class="text-muted">
<i class="mdi mdi-lock me-1" /> Forgot your password?
</Link>
</div>
{/if}
</Form>
</div>
</CardBody>
Expand Down