1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-26 12:16:07 +01:00

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;
}
Uri credsUri, lastUri, currentUri;
if(Uri.TryCreate(creds.Uri, UriKind.Absolute, out credsUri) &&
Uri.TryCreate(creds.LastUri, UriKind.Absolute, out lastUri) &&
Uri lastUri, currentUri;
if(Uri.TryCreate(creds.LastUri, UriKind.Absolute, out lastUri) &&
Uri.TryCreate(currentUriString, UriKind.Absolute, out currentUri) &&
credsUri.Host == currentUri.Host && lastUri.Host == currentUri.Host)
lastUri.Host == currentUri.Host)
{
return true;
}