Improved sign in process and UI
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<script lang="ts">
|
||||
// /** @type {import('./$types').PageData} */
|
||||
export let data: any;
|
||||
import { onMount } from 'svelte';
|
||||
import { browser } from '$app/environment';
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
@@ -13,7 +12,6 @@ export let lq__event_session_obj: any;
|
||||
export let lq__auth__event_presenter_obj: any;
|
||||
|
||||
if (browser) {
|
||||
// onMount(() => {
|
||||
console.log('Browser environment detected.');
|
||||
|
||||
console.log(`lq__auth__event_presenter_obj = `, $lq__auth__event_presenter_obj);
|
||||
@@ -72,9 +70,9 @@ if (browser) {
|
||||
// We need to set browser history and force all load functions to rerun.
|
||||
goto(new_url, {replaceState: true, invalidateAll: true});
|
||||
}
|
||||
// });
|
||||
}
|
||||
|
||||
|
||||
// For session point of contact (moderator, chair, LCI Champions).
|
||||
function session_sign_in() {
|
||||
console.log('Session sign in with URL values');
|
||||
@@ -99,6 +97,7 @@ function session_sign_in() {
|
||||
// $events_slct.event_presenter_id = $events_sess.auth__person.presenter_id;
|
||||
}
|
||||
|
||||
|
||||
// For presenters within a session presentation.
|
||||
function presenter_sign_in() {
|
||||
console.log('Presenter sign in with URL values');
|
||||
@@ -135,6 +134,7 @@ function presenter_sign_in() {
|
||||
$events_loc.auth__person.presenter_id = $events_sess.auth__person.presenter_id;
|
||||
}
|
||||
|
||||
|
||||
function sign_out() {
|
||||
$ae_loc.authenticated_access = false;
|
||||
$ae_loc.access_type = 'anonymous';
|
||||
|
||||
Reference in New Issue
Block a user