Skip to content

Commit 3bd24a2

Browse files
committed
fix: academic year calculation should use september, finish-email should display actual error
1 parent e7e1c38 commit 3bd24a2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/pages/finish-email.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ watch(status, () => {
2020
<CardTitle>We're signing you in...</CardTitle>
2121
</Card>
2222
<Card v-else-if="status == 'error'">
23-
<CardText>{{ error }}</CardText>
23+
<CardText>
24+
<strong>Error:</strong> {{ error?.data.error }}
25+
<br />
26+
If this is a mistake, please reply to your log in link email letting us
27+
know.
28+
</CardText>
2429
</Card>
2530
<Card v-else-if="status == 'success'">
2631
<CardTitle>You are being redirected</CardTitle>

hono/auth/jwt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { apiLogger } from '../logger';
1111
const secret = process.env.JWT_SECRET!;
1212
const webmasters = process.env.WEBMASTERS!.split(',');
1313

14-
const START_OF_ACADEMIC_YEAR = 10; // October
14+
const START_OF_ACADEMIC_YEAR = 9; // September
1515

1616
// Determine the current academic year based on if we are past October or not.
1717
const now = new Date();

0 commit comments

Comments
 (0)