Revert "Add student birthday tracking with celebration banners and admin notification; v1.1.31"

This reverts commit c0a79b9ed0.
This commit is contained in:
nmemmert
2026-08-10 08:43:53 -04:00
parent c0a79b9ed0
commit c56e468115
7 changed files with 5 additions and 251 deletions
+1 -2
View File
@@ -6,7 +6,7 @@ import {
verifyTotpCode,
generateRecoveryCodes,
} from '../auth.js'
import { parseCookies, isBirthdayThisWeek } from '../helpers.js'
import { parseCookies } from '../helpers.js'
import { STUDY_SESSION_COOKIE, MAX_STUDY_USERS, MAX_CONTACT_SUBMISSIONS } from '../config.js'
import { state } from '../state.js'
import {
@@ -57,7 +57,6 @@ export function register(app) {
totpEnabled: Boolean(user && (user.twoFaMethod === 'app' || user.twoFaMethod === 'email') && (user.twoFaMethod === 'email' || (user.totpSecret && user.totpVerified))),
twoFaMethod: user?.twoFaMethod ?? null,
totpRecoveryCodesRemaining: user?.twoFaMethod === 'app' ? (user.totpRecoveryCodes?.length ?? 0) : 0,
isBirthdayWeek: user ? isBirthdayThisWeek(user) : false,
})
})