mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 20:32:48 +00:00
Move nextcloud_login to frontend crate
This commit is contained in:
@@ -17,6 +17,6 @@
|
||||
{% if let Some(OidcProviderData {name, redirect_url}) = oidc_data %}
|
||||
<a href="{{ redirect_url }}">Login with {{ name }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{% extends "layouts/default.html" %}
|
||||
|
||||
{% block imports %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>Authorize application to act on your behalf, {{ username }}?</p>
|
||||
<form method="POST">
|
||||
<label for="app_name">App name</label>
|
||||
<input type="text" value="{{ app_name }}" name="app_name"/>
|
||||
<button type="submit">Authorize</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,8 @@
|
||||
{% extends "layouts/default.html" %}
|
||||
|
||||
{% block imports %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>Authorized app {{ app_name }}, you may now close this page.</p>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user