mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 18:38:27 +03:00
add protocol if missing
This commit is contained in:
parent
acdfce7e88
commit
7c781b60c5
1 changed files with 4 additions and 0 deletions
|
@ -468,6 +468,10 @@ namespace Bit.App.Services
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!loginUriString.Contains("://") && loginUriString.Contains("."))
|
||||||
|
{
|
||||||
|
loginUriString = "http://" + loginUriString;
|
||||||
|
}
|
||||||
string loginDomainName = null;
|
string loginDomainName = null;
|
||||||
if(Uri.TryCreate(loginUriString, UriKind.Absolute, out Uri loginUri)
|
if(Uri.TryCreate(loginUriString, UriKind.Absolute, out Uri loginUri)
|
||||||
&& DomainName.TryParseBaseDomain(loginUri.Host, out loginDomainName))
|
&& DomainName.TryParseBaseDomain(loginUri.Host, out loginDomainName))
|
||||||
|
|
Loading…
Reference in a new issue