Ejemplo n.º 1
0
        public async Task <ActionResult> SignUp(SignUpModal model)
        {
            try
            {
                var auth = new FirebaseAuthProvider(new FirebaseConfig(ApiKey));

                var a = await auth.CreateUserWithEmailAndPasswordAsync(model.Email, model.Password, model.Name, true);

                ModelState.AddModelError(string.Empty, "Please Verify your email then login.");
            }
            catch (Exception ex)
            {
                ModelState.AddModelError(string.Empty, ex.Message);
            }
            return(View());
        }
Ejemplo n.º 2
0
 public bool SignUpUUser(SignUpModal user)
 {
     System.Threading.Thread.Sleep(2000);
     return(true);
 }