Add login/logout
This commit is contained in:
1 parent
cde5e651a6
commit
9358dd39a1
5 files changed
+81
-7
No files matched your search
@@ -0,0 +1,6 @@
|
||||
<section class="page-section">
|
||||
<div class="content">
|
||||
<h1>Interface d'administration de NETig</h1>
|
||||
<p>Test</p>
|
||||
</div>
|
||||
</section>
|
||||
+12
-2
@@ -1,4 +1,3 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
@@ -40,7 +39,18 @@
|
||||
<a href="https://webmail.netig.net" target="_blank" rel="noopener noreferrer">NETmail ↗</a>
|
||||
<a href="https://cloud.netig.net" target="_blank" rel="noopener noreferrer">NETcloud ↗</a>
|
||||
<a href="https://git.netig.net" target="_blank" rel="noopener noreferrer">NETgit ↗</a>
|
||||
<a class="topbar__account" href="/login">Mon espace ➜</a>
|
||||
<% if rodauth.logged_in? %>
|
||||
<form method="post" action="<%= rodauth.logout_path %>">
|
||||
<%== rodauth.csrf_tag(rodauth.logout_path) %>
|
||||
<button class="topbar__account" type="submit">
|
||||
Déconnexion
|
||||
</button>
|
||||
</form>
|
||||
<% else %>
|
||||
<a class="topbar__account" href="<%= rodauth.login_path %>">
|
||||
Connexion ➜
|
||||
</a>
|
||||
<% end %>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
Reference in new issue
Block a user