Skip to content
Snippets Groups Projects
Commit 7783168a authored by Boris's avatar Boris
Browse files

Ajout du mot de passe pour les profs / formulaire de login (temporaire) / ...

Ajout du mot de passe pour les profs / formulaire de login (temporaire) /  authentification (temporaire) / accès au ressources(profs) que si authentifié(e)
parent 662f8470
No related branches found
No related tags found
No related merge requests found
package com.uca.gui;
import com.uca.core.*;
import freemarker.template.*;
import java.io.*;
import java.util.*;
public class LoginGUI
{
public static String getConnectionPage() throws IOException, TemplateException {
Map<String, Object> input = new HashMap<>();
return DefaultGUI.getDefaultGUI(input, "login.ftl");
}
}
\ No newline at end of file
......@@ -18,4 +18,7 @@ public class ProfGUI
{
Core.Prof.delete(Core.Prof.getById(Integer.parseInt(id)));
}
}
<#ftl encoding="utf-8">
<body xmlns="http://www.w3.org/1999/html">
<form method="post" action="/login">
<label for="userName">Nom d'utilisateur</label>
<input name="userName">
<label for="password">Mot de passe</label>
<input name="password">
<button type="submit" placeholder="Supprimer...">Envoyer</button>
</form>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment