Skip to content

Commit

Permalink
only show register button if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
C4illin committed May 24, 2024
1 parent f92cc4f commit 549bcad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 549bcad

Please sign in to comment.