1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-05-12 14:47:46 +00:00

Add a warning to not enter your real account's credentials

I added a warning to the bottom of the login pages everywhere to make
sure users do not try to enter their real account credentials.
This commit is contained in:
Joshua Goins 2025-05-03 20:44:59 -04:00
parent 073ae89174
commit 85a2abb49e
3 changed files with 11 additions and 4 deletions

View file

@ -21,16 +21,18 @@
<input type="button" class="btn btn-primary btn-lg mt-3 mb-3" id="play" value="Play" onclick="window.external.user('startPlay');" style="display: none"/> <input type="button" class="btn btn-primary btn-lg mt-3 mb-3" id="play" value="Play" onclick="window.external.user('startPlay');" style="display: none"/>
<div class="btn-group" role="group"> <div class="btn-group mb-3" role="group">
<input type="button" class="btn btn-secondary" value="System Info" onclick="window.external.user('systemInfo');" /> <input type="button" class="btn btn-secondary" value="System Info" onclick="window.external.user('systemInfo');" />
<input type="button" class="btn btn-secondary" value="Config Tool" onclick="window.external.user('configTransport');" /> <input type="button" class="btn btn-secondary" value="Config Tool" onclick="window.external.user('configTransport');" />
</div> </div>
<div class="btn-group" role="group"> <div class="btn-group mb-3" role="group">
<input type="button" class="btn btn-outline-secondary" value="Accept EULA" onclick="window.external.user('eulaOk');" /> <input type="button" class="btn btn-outline-secondary" value="Accept EULA" onclick="window.external.user('eulaOk');" />
<input type="button" class="btn btn-outline-secondary" value="Accept Ex EULAs" onclick="window.external.user('eulaExOk');" /> <input type="button" class="btn btn-outline-secondary" value="Accept Ex EULAs" onclick="window.external.user('eulaExOk');" />
</div> </div>
<p><small>This is not an official login page. It will <i>not</i> accept your official account's credentials, please do not enter them here!</small></p>
</main> </main>
<script type="text/javascript"> <script type="text/javascript">

View file

@ -3,7 +3,7 @@
{% block title %}Kawari - Login{% endblock %} {% block title %}Kawari - Login{% endblock %}
{% block loginbody %} {% block loginbody %}
<form method='post'> <form method='post' class="mb-3">
<label for="username" class="form-label">Username</label><br> <label for="username" class="form-label">Username</label><br>
<input type='text' id='username' name='username' class="form-control"/><br> <input type='text' id='username' name='username' class="form-control"/><br>
<label for="password" class="form-label">Password</label><br> <label for="password" class="form-label">Password</label><br>
@ -11,4 +11,6 @@
<button type='submit' class="btn btn-primary">Login</button> <button type='submit' class="btn btn-primary">Login</button>
</form> </form>
<p><small>This is not an official login page. It will <i>not</i> accept your official account's credentials, please do not enter them here!</small></p>
{% endblock %} {% endblock %}

View file

@ -3,11 +3,14 @@
{% block title %}Kawari - Register{% endblock %} {% block title %}Kawari - Register{% endblock %}
{% block loginbody %} {% block loginbody %}
<form action='/oauth/oa/registlist' method='post'> <form action='/oauth/oa/registlist' method='post' class="mb-3">
<label for="username" class="form-label">Username:</label><br> <label for="username" class="form-label">Username:</label><br>
<input type='text' id='username' name='username' class="form-control"/><br> <input type='text' id='username' name='username' class="form-control"/><br>
<label for="password" class="form-label">Password:</label><br> <label for="password" class="form-label">Password:</label><br>
<input id='password' name='password' class="form-control" type="password"/><br> <input id='password' name='password' class="form-control" type="password"/><br>
<button type='submit' class="btn btn-primary">Register</button> <button type='submit' class="btn btn-primary">Register</button>
</form> </form>
<p><small>This is not an official registration page.</small></p>
{% endblock %} {% endblock %}