crates/server: REST API routes; RBAC auth middleware; cookie sessions; dashboard
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I5298a925bd9c11780e49d8b1c98eebd86a6a6964
This commit is contained in:
parent
44d1ee1d6b
commit
235d3d38a6
38 changed files with 6275 additions and 7 deletions
19
crates/server/templates/login.html
Normal file
19
crates/server/templates/login.html
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Login - FC CI{% endblock %}
|
||||
{% block content %}
|
||||
<h1>Login</h1>
|
||||
<div class="form-card">
|
||||
{% match error %}
|
||||
{% when Some with (msg) %}
|
||||
<div class="flash-message flash-error">{{ msg }}</div>
|
||||
{% when None %}
|
||||
{% endmatch %}
|
||||
<form method="POST" action="/login">
|
||||
<div class="form-group">
|
||||
<label for="api_key">API Key</label>
|
||||
<input type="password" id="api_key" name="api_key" placeholder="fc_..." required>
|
||||
</div>
|
||||
<button type="submit" class="btn">Login</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue