diff --git a/src/App/App.xaml.cs b/src/App/App.xaml.cs index 64f16af7e..76cfc98fd 100644 --- a/src/App/App.xaml.cs +++ b/src/App/App.xaml.cs @@ -145,7 +145,7 @@ namespace Bit.App new NavigationPage(new RemoveMasterPasswordPage())); }); } - else if (message.Command == "forceUpdatePassword") + else if (message.Command == Constants.ForceUpdatePassword) { Device.BeginInvokeOnMainThread(async () => { diff --git a/src/App/Pages/TabsPage.cs b/src/App/Pages/TabsPage.cs index 6aa338379..861724cf0 100644 --- a/src/App/Pages/TabsPage.cs +++ b/src/App/Pages/TabsPage.cs @@ -3,6 +3,7 @@ using System.Threading.Tasks; using Bit.App.Effects; using Bit.App.Models; using Bit.App.Resources; +using Bit.Core; using Bit.Core.Abstractions; using Bit.Core.Models.Data; using Bit.Core.Utilities; @@ -102,7 +103,7 @@ namespace Bit.App.Pages if (forcePasswordResetReason.HasValue) { - _messagingService.Send("forceUpdatePassword"); + _messagingService.Send(Constants.ForceUpdatePassword); } } diff --git a/src/Core/Constants.cs b/src/Core/Constants.cs index beb8c6d99..f77b4b7f7 100644 --- a/src/Core/Constants.cs +++ b/src/Core/Constants.cs @@ -48,6 +48,7 @@ public const string LastUserShouldConnectToWatchKey = "lastUserShouldConnectToWatch"; public const string AppLocaleKey = "appLocale"; public const string ClearSensitiveFields = "clearSensitiveFields"; + public const string ForceUpdatePassword = "forceUpdatePassword"; public const int SelectFileRequestCode = 42; public const int SelectFilePermissionRequestCode = 43; public const int SaveFileRequestCode = 44;