Solved some problems, bypassed some stuff
This commit is contained in:
@@ -10,7 +10,7 @@ import {User} from "@/interfaces/user";
|
||||
export const getServerSideProps = withIronSessionSsr(({req, res}) => {
|
||||
const user = req.session.user;
|
||||
|
||||
if (!user || !user.isVerified) {
|
||||
if (!user) {
|
||||
return {
|
||||
redirect: {
|
||||
destination: "/login",
|
||||
|
||||
Reference in New Issue
Block a user