private void OnValidateResetPasswordCompleted(InvokeOperation<string> operation) { string errorStatus = operation.CheckErrorStatus(); string userName = (errorStatus != null ? null : operation.Value); if (userName != null) { AuthenticationDialog dialog = new AuthenticationDialog(AuthenticationDialog.DialogType.ResetPassword); dialog.ResetUserName = userName; dialog.ResetPasswordCode = m_ResetPasswordCode; } else { AuthenticationDialog dialog = new AuthenticationDialog(AuthenticationDialog.DialogType.RecoverSignIn); dialog.RecoverErrorStatus = "Sorry but the link you clicked on is no longer valid. Enter your email address again and we will send you a new recovery email."; } }
private void OnRegisterClick(object sender, RoutedEventArgs e) { AuthenticationDialog dialog = new AuthenticationDialog(AuthenticationDialog.DialogType.Register); dialog.Closed += AuthenticationDialogClosed; }
private void OnDeleteAccountClick(object sender, RoutedEventArgs e) { if (!App.Model.UserServices.User.IsAuthenticated) { MessageBoxEx.ShowWarning("Delete account", "You are not signed in", null); return; } AuthenticationDialog dialog = new AuthenticationDialog(AuthenticationDialog.DialogType.DeleteAccount); dialog.Closed += DeleteAccountDialogClosed; }
internal void OnSigninClick(object sender, RoutedEventArgs e) { AuthenticationDialog dialog = new AuthenticationDialog(AuthenticationDialog.DialogType.SignIn); dialog.Closed += AuthenticationDialogClosed; }
private void OnChangePasswordClick(object sender, RoutedEventArgs e) { if (!App.Model.UserServices.User.IsAuthenticated) { MessageBoxEx.ShowWarning("Change password", "You are not signed in", null); return; } AuthenticationDialog dialog = new AuthenticationDialog(AuthenticationDialog.DialogType.ChangePassword); dialog.Closed += ChangePasswordDialogClosed; }