Added the ability for Corporate accounts to register without codes

This commit is contained in:
Tiago Ribeiro
2023-10-29 14:38:46 +00:00
parent 6e31a05f21
commit a20b980adb
9 changed files with 98 additions and 23 deletions

View File

@@ -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>