From 2611ded920a8345922346ed0d43e4efdd94401a1 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 27 Oct 2022 23:56:29 +0200 Subject: Began implementing middlewares, session and auth --- views/login.ejs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 views/login.ejs (limited to 'views/login.ejs') diff --git a/views/login.ejs b/views/login.ejs new file mode 100644 index 0000000..e1178d7 --- /dev/null +++ b/views/login.ejs @@ -0,0 +1,23 @@ +<%- include("header") %> +
+ <% if (Object.keys(errors).length === 0) { %> +

Connexion:

+ <% } else { %> +

Oops, erreur de connexion!

+ <% } %> +
+ + <% if (errors.username) { %> + + <% } %> +
+
+ + <% if (errors.password) { %> + + <% } %> +
+ +
+ +<%- include("footer") %> -- cgit v1.2.3