register - facebook redirect - failure in regis..
This commit is contained in:
parent
ef7f19e7c2
commit
4b25719417
|
@ -49,7 +49,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/register',
|
path: '/register',
|
||||||
component: () => import('$routes/register.svelte'),
|
component: () => import('$root/src/routes/register/register.svelte'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/register/failed',
|
||||||
|
component: () => import('$routes/register/registerFailed.svelte'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/:gameurl',
|
path: '/:gameurl',
|
||||||
|
|
|
@ -1,13 +1,9 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { account } from '$lib/appwrite'
|
import { account } from '$lib/appwrite'
|
||||||
import { ID } from 'appwrite'
|
import { ID } from 'appwrite'
|
||||||
import HiddenInput from '../lib/components/Inputs/Hidden_Input.svelte'
|
import HiddenInput from '../../lib/components/Inputs/Hidden_Input.svelte'
|
||||||
import GoogleLogo from '../lib/svg/GoogleLogo.svelte'
|
import GoogleLogo from '../../lib/svg/GoogleLogo.svelte'
|
||||||
import TopImage from '../lib/svg/Top-Image.svelte'
|
import TopImage from '../../lib/svg/Top-Image.svelte'
|
||||||
|
|
||||||
export let purpose = 'register' //possible values login, register
|
export let purpose = 'register' //possible values login, register
|
||||||
|
|
||||||
|
@ -71,12 +67,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="continue_with">
|
<div class="continue_with">
|
||||||
<button on:click={() => account.createOAuth2Session('google')}>
|
<button on:click={() => account.createOAuth2Session('google', '/', '/register/failed')}>
|
||||||
<GoogleLogo />
|
<GoogleLogo />
|
||||||
<p>Continue with Google</p>
|
<p>Continue with Google</p>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button on:click={() => account.createOAuth2Session('facebook')}>
|
<button on:click={() => account.createOAuth2Session('facebook', '/', '/register/failed')}>
|
||||||
<p>Continue with Facebook</p>
|
<p>Continue with Facebook</p>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
|
@ -0,0 +1 @@
|
||||||
|
whoops error
|
Loading…
Reference in New Issue