1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-23 11:45:38 +01:00

log out when checking account reivison if authentication issue

This commit is contained in:
Kyle Spearrin 2017-02-08 00:19:30 -05:00
parent e71adbd26d
commit a418fc810a

View File

@ -203,6 +203,12 @@ namespace Bit.App.Services
return true;
}
if(Application.Current != null && (accountRevisionDate.StatusCode == System.Net.HttpStatusCode.Forbidden
|| accountRevisionDate.StatusCode == System.Net.HttpStatusCode.Unauthorized))
{
MessagingCenter.Send(Application.Current, "Logout", (string)null);
}
return false;
}