mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 15:12:23 +00:00
Fix Nextcloud login flaws
This commit is contained in:
7
crates/nextcloud_login/public/assets/style.css
Normal file
7
crates/nextcloud_login/public/assets/style.css
Normal file
@@ -0,0 +1,7 @@
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
17
crates/nextcloud_login/public/templates/layouts/default.html
Normal file
17
crates/nextcloud_login/public/templates/layouts/default.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{% block title %}RustiCal{% endblock %}</title>
|
||||
<link rel="stylesheet" href="/frontend/assets/style.css" />
|
||||
{% block imports %}{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
{% block content %}<p>Placeholder</p>{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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