Skip to content

Commit

Permalink
FIX LOGIN
Browse files Browse the repository at this point in the history
  • Loading branch information
refact0r committed Mar 21, 2022
1 parent a302543 commit 188d5be
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/routes/login.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,17 @@
password,
districtUrl
}
$session = parseData($session, json)
let { student, periods, currentPeriod } = json
$session = {
...$session,
student,
periods,
currentPeriod,
selectedPeriod: currentPeriod,
selected: periods[currentPeriod],
gradebook: periods[currentPeriod]
}
parseData($session)
goto('/')
} else {
error = 'Invalid login credentials.'
Expand Down

0 comments on commit 188d5be

Please sign in to comment.