コード例 #1
0
        public async Task LoginUser()
        {
            if (string.IsNullOrWhiteSpace(EmailAddress) || string.IsNullOrWhiteSpace(UserPassword))
            {
                return;
            }

            _firebaseAuthService.LoginUser(EmailAddress, UserPassword);

            if (_firebaseAuthService.FirebaseAuth != null)
            {
                var user = await _userRepository.GetUser(_firebaseAuthService.FirebaseAuth.User.Email);

                await _mvxNavigationService.Navigate <FriendListViewModel, User>(user);

                return;
            }

            _notificationService.SendNotification("Invalid username/password, Login Failed");
        }