mirror of
https://github.com/bitwarden/mobile
synced 2025-12-11 05:43:30 +00:00
Centralized logout into a message subscription in app class. Logout when API results are forbidden or unauthorized.
This commit is contained in:
@@ -129,7 +129,7 @@ namespace Bit.App.Pages
|
||||
}
|
||||
};
|
||||
|
||||
if( Device.OS == TargetPlatform.iOS )
|
||||
if(Device.OS == TargetPlatform.iOS)
|
||||
{
|
||||
table.RowHeight = -1;
|
||||
table.EstimatedRowHeight = 44;
|
||||
@@ -199,9 +199,7 @@ namespace Bit.App.Pages
|
||||
return;
|
||||
}
|
||||
|
||||
_authService.LogOut();
|
||||
_pushNotification.Unregister();
|
||||
Application.Current.MainPage = new HomePage();
|
||||
MessagingCenter.Send(Application.Current, "Logout", (string)null);
|
||||
}
|
||||
|
||||
private async void ChangeMasterPasswordCell_Tapped(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user