Fixes a validation error on login when instance names are entered with multiple @ symbols like @username@example.com.
This commit is contained in:
parent
52aa32061a
commit
a8e8732979
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ public class LoginActivity extends AppCompatActivity {
|
||||||
s = s.replaceFirst("http://", "");
|
s = s.replaceFirst("http://", "");
|
||||||
s = s.replaceFirst("https://", "");
|
s = s.replaceFirst("https://", "");
|
||||||
// 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 '@'.
|
||||||
int at = s.indexOf('@');
|
int at = s.lastIndexOf('@');
|
||||||
if (at != -1) {
|
if (at != -1) {
|
||||||
s = s.substring(at + 1);
|
s = s.substring(at + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue