|
|
@ -320,6 +320,10 @@ class LoginActivity : AppCompatActivity() { |
|
|
|
// Strip any schemes out. |
|
|
|
// Strip any schemes out. |
|
|
|
var s = domain.replaceFirst("http://", "") |
|
|
|
var s = domain.replaceFirst("http://", "") |
|
|
|
s = s.replaceFirst("https://", "") |
|
|
|
s = s.replaceFirst("https://", "") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//strip out any slashes that might have been added |
|
|
|
|
|
|
|
s = s.replace("/", "") |
|
|
|
|
|
|
|
|
|
|
|
// If a username was included (e.g. username@example.com), just take what's after the '@'. |
|
|
|
// If a username was included (e.g. username@example.com), just take what's after the '@'. |
|
|
|
val at = s.lastIndexOf('@') |
|
|
|
val at = s.lastIndexOf('@') |
|
|
|
if (at != -1) { |
|
|
|
if (at != -1) { |
|
|
|