diff options
author | Hailey <me@haileyok.com> | 2024-11-16 13:34:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-16 13:34:30 -0800 |
commit | 9bbea3f33a9a17285d8ec58003b598a911c192a1 (patch) | |
tree | 2770bb27bbf3afe0c25c93b64751a30a77efdf7b /src | |
parent | 43d6c15e88c6c45462da33f347fbd7b8c439e02e (diff) | |
download | voidsky-9bbea3f33a9a17285d8ec58003b598a911c192a1.tar.zst |
Email verification tweaks (date) (#6416)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/hooks/useEmail.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/hooks/useEmail.ts b/src/lib/hooks/useEmail.ts index ab87f057e..a8f4c6ad2 100644 --- a/src/lib/hooks/useEmail.ts +++ b/src/lib/hooks/useEmail.ts @@ -12,9 +12,10 @@ export function useEmail() { const checkEmailConfirmed = !!serviceConfig?.checkEmailConfirmed + // Date set for 11 AM PST on the 18th of November const isNewEnough = !!profile?.createdAt && - Date.parse(profile.createdAt) >= Date.parse('2024-11-16T02:00:00.000Z') + Date.parse(profile.createdAt) >= Date.parse('2024-11-18T19:00:00.000Z') const isSelfHost = currentAccount && @@ -24,7 +25,7 @@ export function useEmail() { const needsEmailVerification = !isSelfHost && checkEmailConfirmed && - !!currentAccount?.emailConfirmed && + !currentAccount?.emailConfirmed && isNewEnough return {needsEmailVerification} |