dont compare the creds uri since it could be a different, equivalent domain

This commit is contained in:
Kyle Spearrin 2017-02-09 00:20:29 -05:00
parent 4af91b5ab6
commit 99e78092ed

View file

@ -187,11 +187,10 @@ namespace Bit.Android
return false; return false;
} }
Uri credsUri, lastUri, currentUri; Uri lastUri, currentUri;
if(Uri.TryCreate(creds.Uri, UriKind.Absolute, out credsUri) && if(Uri.TryCreate(creds.LastUri, UriKind.Absolute, out lastUri) &&
Uri.TryCreate(creds.LastUri, UriKind.Absolute, out lastUri) &&
Uri.TryCreate(currentUriString, UriKind.Absolute, out currentUri) && Uri.TryCreate(currentUriString, UriKind.Absolute, out currentUri) &&
credsUri.Host == currentUri.Host && lastUri.Host == currentUri.Host) lastUri.Host == currentUri.Host)
{ {
return true; return true;
} }