Exemplo n.º 1
0
        private async void SignIn()
        {
            FirebaseAuthService dbFirebase = new FirebaseAuthService();
            bool SignInSucssfully          = await dbFirebase.SignInUser(emailEntry.Text, passwordEntry.Text);

            if (SignInSucssfully)
            {
                await Navigation.PushAsync(new MainMasterDetailPage());
            }

            CrossDeviceOrientation.Current.UnlockOrientation();
        }
Exemplo n.º 2
0
    private void OnSetUserCredentials(CredentialsInputType type, string email, string password)
    {
        _mainView.SetStatePanels(true);
        Log.Debug(String.Format("SET DATA: {0} / {1} / {2}", email, password, type));

        switch (type)
        {
        case CredentialsInputType.Register:
            _firebaseAuthService.AddNewUser(email, password);
            break;

        case CredentialsInputType.SignIn:
            _firebaseAuthService.SignInUser(email, password);
            break;
        }
    }