Fixed failing signups and made oauth settings work

Fixed the signup form so it no longer fails, and made the oauth login buttons only appear when they have been enabled in the settings.json file
This commit is contained in:
hyvenet
2025-08-26 12:07:29 +01:00
parent 349a4192e0
commit 494e71ad39
4 changed files with 17 additions and 11 deletions

View File

@@ -154,13 +154,17 @@
<h1>Sign into {{ appName }}</h1>
<p>Log in:</p>
</div>
{% if oauthlogin == "true" %}
<div class="oauth-buttons">
{% if githublogin == "true" %}
<a href="{{ githubUrl }}" class="button">
<img src="{{ url_for('static', filename='github-icon.png') }}" alt="Github logo">
Sign in with Github
</a>
{% endif %}
</div>
<div class="divider">Or</div>
{% endif %}
<div class="emaillogin">
<input id="userbox" class="input" type="text" name="username" placeholder="Username">
<input id="passbox" class="input" type="password" name="password" placeholder="Password">