System de connexion Desktop
continuous-integration/drone/push Build is failing Details

pull/143/head
Hugo LIVET 2 years ago
parent 325ca468f1
commit f307902c6e

@ -12,7 +12,7 @@ public partial class MainPage : ContentPage
BindingContext = this;
}
public void ConnectionOnClicked(object sender, EventArgs e)
public async void ConnectionOnClicked(object sender, EventArgs e)
{
if (EntryMail.Text == null || EntryPassworld.Text == null)
{
@ -20,12 +20,13 @@ public partial class MainPage : ContentPage
}
else
{
/*if (Mgr.existEmail(EntryMail.Text))
if (await Mgr.Pers.EmailDisponible(EntryMail.Text))
{
if (Mgr.isEqualHash(Mgr.recupMdpBdd(EntryMail.Text), EntryPassworld.Text))
if (Mgr.CompareHash(await Mgr.getPassword(EntryMail.Text), EntryPassworld.Text))
{
Mgr.createUser(EntryMail.Text);
ConnexionValide();
Navigation.PushAsync(new Dashboard());
}
else
{
@ -35,16 +36,12 @@ public partial class MainPage : ContentPage
else
{
AffichError("Compte inexistant", "Email ou mot de passe invalide", "OK");
}*/
}
}
private async void ConnexionValide()
{
Navigation.PushAsync(new Dashboard());
//await Navigation.PopModalAsync();
}
private async void AffichError(string s, string s1, string s2)
{
await DisplayAlert(s, s1, s2);

@ -21,4 +21,6 @@ namespace Model
Transaction,
Santé
}
}

Loading…
Cancel
Save