Added the ability for Corporate accounts to register without codes
This commit is contained in:
@@ -65,7 +65,7 @@ export default function Home() {
|
||||
return true;
|
||||
};
|
||||
|
||||
if (user && (user.isDisabled || checkIfUserExpired())) {
|
||||
if (user && (user.status === "disabled" || checkIfUserExpired())) {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
@@ -79,7 +79,7 @@ export default function Home() {
|
||||
</Head>
|
||||
<Layout user={user} navDisabled>
|
||||
<div className="flex flex-col items-center justify-center text-center w-full gap-4">
|
||||
{user.isDisabled ? (
|
||||
{user.status === "disabled" ? (
|
||||
<>
|
||||
<span className="font-bold text-lg">Your account has been disabled!</span>
|
||||
<span>Please contact an administrator if you believe this to be a mistake.</span>
|
||||
|
||||
Reference in New Issue
Block a user