diff --git a/ScreenCast.Win/Services/WinClipboardService.cs b/ScreenCast.Win/Services/WinClipboardService.cs
index a05cbd52..f1ea91cf 100644
--- a/ScreenCast.Win/Services/WinClipboardService.cs
+++ b/ScreenCast.Win/Services/WinClipboardService.cs
@@ -69,14 +69,20 @@ namespace Remotely.ScreenCast.Win.Services
{
try
{
- if (clipboardText is null)
- {
- return;
- }
-
var thread = new Thread(() =>
{
- Clipboard.SetText(clipboardText);
+ try
+ {
+ if (string.IsNullOrWhiteSpace(clipboardText))
+ {
+ Clipboard.Clear();
+ }
+ else
+ {
+ Clipboard.SetText(clipboardText);
+ }
+ }
+ catch { }
});
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
diff --git a/Server/Areas/Identity/Pages/Account/Manage/Organization.cshtml.cs b/Server/Areas/Identity/Pages/Account/Manage/Organization.cshtml.cs
index 0442b1db..f3505ab8 100644
--- a/Server/Areas/Identity/Pages/Account/Manage/Organization.cshtml.cs
+++ b/Server/Areas/Identity/Pages/Account/Manage/Organization.cshtml.cs
@@ -111,15 +111,8 @@ namespace Remotely.Server.Areas.Identity.Pages.Account.Manage
var result = await UserManager.CreateAsync(user);
if (result.Succeeded)
{
- //if (!DataService.SetNewUserProperties(user.UserName, currentUser.OrganizationID, Input.IsAdmin))
- //{
- // ModelState.AddModelError("OrgID", "Failed to set organization ID.");
- // return Page();
- //}
-
user = await UserManager.FindByEmailAsync(Input.UserEmail);
-
await UserManager.ConfirmEmailAsync(user, await UserManager.GenerateEmailConfirmationTokenAsync(user));
StatusMessage = "User account created.";
diff --git a/Server/Areas/Identity/Pages/Account/Manage/ServerConfig.cshtml b/Server/Areas/Identity/Pages/Account/Manage/ServerConfig.cshtml
index 93e6eaed..5cf00258 100644
--- a/Server/Areas/Identity/Pages/Account/Manage/ServerConfig.cshtml
+++ b/Server/Areas/Identity/Pages/Account/Manage/ServerConfig.cshtml
@@ -12,7 +12,7 @@