2022-04-20 23:49:13 +08:00
{% extends "layout.twig" %}
{% block body %}
<div class="login-wrapper">
<div class="login">
2024-07-29 23:44:32 +08:00
<img alt="Nextcloud logo" src="/img/logo-blue.svg" style="margin-left: auto;margin-right: auto;display: block;">
2022-04-20 23:49:13 +08:00
<h1>Nextcloud AIO Login</h1>
{% if is_login_allowed == true %}
2024-05-15 23:55:26 +08:00
<p>Log in using your Nextcloud AIO passphrase:</p>
2023-03-31 22:41:48 +08:00
<form method="POST" action="/api/auth/login" class="xhr">
2023-06-26 21:12:01 +08:00
<input type="password" autocomplete="current-password" name="password" placeholder="Password" id="master-password" oninput="showPassword('master-password')">
2022-04-20 23:49:13 +08:00
<input type="hidden" name=" {{ csrf .keys .name }} " value=" {{ csrf .name }} ">
<input type="hidden" name=" {{ csrf .keys .value }} " value=" {{ csrf .value }} ">
2022-07-18 23:53:10 +08:00
<input type="submit" class="button" value="Log in" />
2022-04-20 23:49:13 +08:00
</form>
{% else %}
2024-05-30 19:14:31 +08:00
<p>The login is blocked since Nextcloud is running.<br>Please use the <a href="https://github.com/nextcloud/all-in-one#how-to-easily-log-in-to-the-aio-interface"><strong>automatic login</strong></a> from your Nextcloud.<br><br>
2024-05-24 17:57:00 +08:00
If that is not possible, you can unblock the login by running<br><strong>sudo docker stop nextcloud-aio-apache</strong></p>
2022-04-20 23:49:13 +08:00
{% endif %}
</div>
</div>
2023-02-17 02:14:09 +08:00
<script type="text/javascript" src="before-unload.js"></script>
<div id="overlay">
<div class="loader"></div>
</div>
2022-04-20 23:49:13 +08:00
{% endblock %}