Merge pull request 'Login' (#22) from Login into master
Reviewed-on: WikiFantasy/WF-WebAdmin#22pull/24/head
commit
00bc784f05
@ -1,28 +1,29 @@
|
||||
@page "/"
|
||||
@using WF_WebAdmin.Model
|
||||
@inject UserLogin uLogin
|
||||
<h1>▶ Connexion ◀</h1>
|
||||
|
||||
<div class="login">
|
||||
@* <form method="post" action="{{ racine }}/validlogin"> *@
|
||||
<p> <strong>Identifiant *</strong></p>
|
||||
<input type="text" class="connexion" name="pseudo" id="pseudo" placeholder="Entrez votre pseudo" required />
|
||||
<EditForm Model="userLogin" OnValidSubmit="validlogin">
|
||||
<DataAnnotationsValidator />
|
||||
<ValidationSummary />
|
||||
|
||||
<p> <strong> Mot de passe *</strong></p>
|
||||
<input type="password" class="connexion" name="mdp" id="mdp" placeholder="Entrez votre mdp" required />
|
||||
|
||||
<label for="name"><strong>Identifiant *</strong></label>
|
||||
<InputText @bind-Value="userLogin.Name" id="name" placeholder="Entrez votre pseudo" class="connexion" required />
|
||||
|
||||
<label for="mdp"><strong>Mot de passe*</strong></label>
|
||||
<InputText @bind-Value="@userLogin.Mdp" type="password" placeholder="Password" class="connexion" required />
|
||||
|
||||
|
||||
<div class="buttonSubmitDiv">
|
||||
<button class="buttonSudmite">Se Connecter</button>
|
||||
<button class="buttonSudmite"type="submit">Se Connecter</button>
|
||||
</div>
|
||||
|
||||
@* </form> *@
|
||||
<p class="ErrorMsg"><i>@ErrorConnexion</i></p>
|
||||
</EditForm>
|
||||
</div>
|
||||
|
||||
|
||||
@code {
|
||||
private void ShowFullSite()
|
||||
{
|
||||
// Code pour afficher l'ensemble du menu
|
||||
// Cela peut être un appel à une méthode ou un service qui change l'état de la visibilité du menu
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
[
|
||||
{
|
||||
"Id": 1,
|
||||
"Image": "https://tse4.mm.bing.net/th/id/OIP.fc5TQflh0cbxB1GUeOdk6gHaK8?w=123&h=180&c=7&r=0&o=5&pid=1.7",
|
||||
"Name": "Admin",
|
||||
"IsAdmin": true,
|
||||
"Mdp" : "passwd"
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
|
||||
"Name": "exploit",
|
||||
"IsAdmin": false,
|
||||
"Mdp": "passwd"
|
||||
}
|
||||
]
|
Loading…
Reference in new issue