mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Fixed silly sign in bug
This commit is contained in:
parent
64f5649db1
commit
d864afb244
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ export const AuthOptions: NextAuthOptions = {
|
|||
callbacks: {
|
||||
async signIn({ user, account }) {
|
||||
try {
|
||||
if (user == null || user.email == null) {
|
||||
if (user === null || user.email === null) {
|
||||
return "/beta";
|
||||
}
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ export const AuthOptions: NextAuthOptions = {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (dbUser.length !== 0 || account == null) {
|
||||
if (dbUser.length === 0 || account === null) {
|
||||
return "/beta";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue