Przeglądaj źródła

only show register button if possible

C4illin 1 rok temu
rodzic
commit
549bcadc15
1 zmienionych plików z 5 dodań i 3 usunięć
  1. 5 3
      src/index.tsx

+ 5 - 3
src/index.tsx

@@ -277,9 +277,11 @@ const app = new Elysia()
                 </label>
               </fieldset>
               <div role="group">
-                <a href="/register" role="button" class="secondary">
-                  Register an account
-                </a>
+                {ACCOUNT_REGISTRATION && (
+                  <a href="/register" role="button" class="secondary">
+                    Register an account
+                  </a>
+                )}
                 <input type="submit" value="Login" />
               </div>
             </form>