Skip to content
Snippets Groups Projects

Release 0.1: Authentication & Session

Merged Martin Lehoux requested to merge release-0.1 into master
3 files
+ 61
20
Compare changes
  • Side-by-side
  • Inline

Files

+ 21
0
@@ -8,6 +8,27 @@ html(lang="en")
title RoleGame
body
block navbar
if !user
form.ui.form(action="/login", method="post")
.ui.pointing.menu
.right.menu
.item
.ui.input.transparent
input#username(type="text" name="username" placeholder="username")
.item
.ui.transparent.input
input#password(type="password" name="password" placeholder="password")
.item
.ui.transparent.input
input.ui.button(type="submit" value="Se connecter")
else
form.ui.form(action="/logout", method="post")
.ui.pointing.menu
.right.menu
.item #{user.firstName} #{user.lastName}
.item
button.ui.icon.button.basic(type="submit")
i.power.off.icon
.ui.container
block main
block script
Loading