Exemplo n.º 1
0
        private async void MyLoginButtonClick(object obj)
        {
            isPerformingLogin = true;

            string hashPassword = Password.CalculateMD5Hash(PasswordTextBox);

            var ret = await _userService.PerformLogin(UsernameTextBox, hashPassword);

            if (ret != null)
            {
                App.UtilizatorCurent = JsonConvert.DeserializeObject <Utilizator>(ret);

                var mesg = new LoginMessage();
                mesg.Str = ret;

                _messageBus.Publish(mesg);
            }

            isPerformingLogin = false;
        }