]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
theme 98. login and logout
authorBanana <mail@bananas-playground.net>
Mon, 10 Apr 2023 08:58:28 +0000 (10:58 +0200)
committerBanana <mail@bananas-playground.net>
Mon, 10 Apr 2023 08:58:28 +0000 (10:58 +0200)
webclient/view/98/auth/auth.html [new file with mode: 0644]

diff --git a/webclient/view/98/auth/auth.html b/webclient/view/98/auth/auth.html
new file mode 100644 (file)
index 0000000..f59b7f3
--- /dev/null
@@ -0,0 +1,23 @@
+<?php if($Doomguy->isSignedIn() === true) { ?>
+<h3>Logout</h3>
+<form method="get" action="index.php">
+       <input type="hidden" name="p" value="auth" />
+       <input type="hidden" name="m" value="logout" />
+       <input type="submit" value="Logout" />
+</form>
+<?php } else { ?>
+<h3>Login</h3>
+<form method="post">
+       <div class="field-row">
+               <label for="username">Username</label>
+               <input id="username" type="text" autocomplete="off" name="fdata[login]">
+       </div>
+       <div class="field-row">
+               <label for="password">Password</label>
+               <input id="password" type="password" autocomplete="off" name="fdata[password]">
+       </div>
+       <div class="field-row">
+               <input type="submit" value="Login" name="submitForm" />
+       </div>
+</form>
+<?php } ?>