|
|
@ -1,8 +1,13 @@
|
|
|
|
namespace MangaMap.Views;
|
|
|
|
namespace MangaMap.Views;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using MangaMap.Model;
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
|
|
|
|
|
|
|
public partial class signUpPage : ContentPage
|
|
|
|
public partial class signUpPage : ContentPage
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Manager my_manager => (App.Current as App).MyManager;
|
|
|
|
|
|
|
|
|
|
|
|
public signUpPage()
|
|
|
|
public signUpPage()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
InitializeComponent();
|
|
|
@ -11,7 +16,11 @@ public partial class signUpPage : ContentPage
|
|
|
|
async void OnSignUpClicked(object sender, System.EventArgs e)
|
|
|
|
async void OnSignUpClicked(object sender, System.EventArgs e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Récupérer les valeurs des entrées
|
|
|
|
// Récupérer les valeurs des entrées
|
|
|
|
|
|
|
|
string nom = nameEntry.Text;
|
|
|
|
|
|
|
|
string prénom = firstNameEntry.Text;
|
|
|
|
|
|
|
|
int age = Convert.ToInt32(ageEntry.Text);
|
|
|
|
string email = emailEntry.Text;
|
|
|
|
string email = emailEntry.Text;
|
|
|
|
|
|
|
|
string pseudo = usernameEntry.Text;
|
|
|
|
string password = passwordEntry.Text;
|
|
|
|
string password = passwordEntry.Text;
|
|
|
|
string confirmPassword = confirmPasswordEntry.Text;
|
|
|
|
string confirmPassword = confirmPasswordEntry.Text;
|
|
|
|
|
|
|
|
|
|
|
@ -47,6 +56,9 @@ public partial class signUpPage : ContentPage
|
|
|
|
await Navigation.PushAsync(new homePage());
|
|
|
|
await Navigation.PushAsync(new homePage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Utilisateur util = new Utilisateur(email, pseudo, password, nom, prénom, age);
|
|
|
|
|
|
|
|
my_manager.ajouterUtilisateur(util);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool IsPasswordStrong(string password)
|
|
|
|
bool IsPasswordStrong(string password)
|
|
|
|