public override void Login(LoginScreenViewModel viewModel)
        {
            base.Login (viewModel);
            /* Direct call to the service. */
            UserManagementService.AuthorizeLocalUser (viewModel.Username, viewModel.Password);

            if (UserManagementService.LocalUser.AuthorizationState != AuthorizationState.Authorized) {
                viewModel.ErrorMessage = "Failed to login! Incorrect username or password!";
            } else {
                viewModel.ErrorMessage = string.Empty;
            }
        }
Beispiel #2
0
        public override void Login(LoginScreenViewModel viewModel)
        {
            base.Login(viewModel);
            /* Direct call to the service. */
            UserManagementService.AuthorizeLocalUser(viewModel.Username, viewModel.Password);

            if (UserManagementService.LocalUser.AuthorizationState != AuthorizationState.Authorized)
            {
                viewModel.ErrorMessage = "failed to login in ";
            }
            else
            {
                viewModel.ErrorMessage = string.Empty;
            }
        }
 public override void InitializeLoginScreen(LoginScreenViewModel viewModel)
 {
     base.InitializeLoginScreen (viewModel);
     // This is called when a LoginScreenViewModel is created
 }
Beispiel #4
0
 public virtual void Login(LoginScreenViewModel viewModel)
 {
 }
Beispiel #5
0
 public virtual void InitializeLoginScreen(LoginScreenViewModel viewModel)
 {
     // This is called when a LoginScreenViewModel is created
     viewModel.Login.Action = this.LoginHandler;
     LoginScreenViewModelManager.Add(viewModel);
 }
Beispiel #6
0
 public override void InitializeLoginScreen(LoginScreenViewModel viewModel)
 {
     base.InitializeLoginScreen(viewModel);
     // This is called when a LoginScreenViewModel is created
 }
 public virtual void Login(LoginScreenViewModel viewModel)
 {
 }
 public virtual void InitializeLoginScreen(LoginScreenViewModel viewModel)
 {
     // This is called when a LoginScreenViewModel is created
     viewModel.Login.Action = this.LoginHandler;
     LoginScreenViewModelManager.Add(viewModel);
 }