summaryrefslogtreecommitdiffstats
path: root/src/webapp
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-01-23 22:28:55 +0100
committerivarlovlie <git@ivarlovlie.no>2022-01-23 22:28:55 +0100
commit253c8479b9ae0ba6853a70728d3f6e904e1ac2ba (patch)
treea8d18e650d327221e60bee84879caaabf4f92acf /src/webapp
parentd268ddf7fbb6ef025564c1a6f1d935a1267185df (diff)
downloadbookmark-thing-253c8479b9ae0ba6853a70728d3f6e904e1ac2ba.tar.xz
bookmark-thing-253c8479b9ae0ba6853a70728d3f6e904e1ac2ba.zip
feat: WIP: Add option to login in with github
Diffstat (limited to 'src/webapp')
-rw-r--r--src/webapp/src/components/forms/login-form.svelte10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/webapp/src/components/forms/login-form.svelte b/src/webapp/src/components/forms/login-form.svelte
index aa90917..a5c5653 100644
--- a/src/webapp/src/components/forms/login-form.svelte
+++ b/src/webapp/src/components/forms/login-form.svelte
@@ -4,6 +4,8 @@
import {createEventDispatcher} from "svelte";
import type {IErrorResult} from "@/lib/models/IErrorResult";
import {Button, Checkbox, Column, Form, Grid, InlineNotification, PasswordInput, Row, TextInput, Tile} from "carbon-components-svelte";
+ import LogoGithub20 from "carbon-icons-svelte/lib/LogoGithub20";
+ import {api_base} from "@/lib/configuration";
const dispatch = createEventDispatcher();
@@ -113,6 +115,14 @@
Submit
</Button>
</Row>
+ <Row>
+ <Button kind="secondary"
+ href={api_base("account/create-github-session")}
+ icon="{LogoGithub20}"
+ size="sm">
+ Login with Github
+ </Button>
+ </Row>
</Grid>
</Form>
</Tile>