@ -1,28 +1,29 @@
|
|||||||
@page "/"
|
@page "/"
|
||||||
|
@using WF_WebAdmin.Model
|
||||||
|
@inject UserLogin uLogin
|
||||||
<h1>▶ Connexion ◀</h1>
|
<h1>▶ Connexion ◀</h1>
|
||||||
|
|
||||||
<div class="login">
|
<div class="login">
|
||||||
@* <form method="post" action="{{ racine }}/validlogin"> *@
|
<EditForm Model="userLogin" OnValidSubmit="validlogin">
|
||||||
<p> <strong>Identifiant *</strong></p>
|
<DataAnnotationsValidator />
|
||||||
<input type="text" class="connexion" name="pseudo" id="pseudo" placeholder="Entrez votre pseudo" required />
|
<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">
|
<div class="buttonSubmitDiv">
|
||||||
<button class="buttonSudmite">Se Connecter</button>
|
<button class="buttonSudmite"type="submit">Se Connecter</button>
|
||||||
</div>
|
</div>
|
||||||
|
<p class="ErrorMsg"><i>@ErrorConnexion</i></p>
|
||||||
@* </form> *@
|
</EditForm>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@code {
|
@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