mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[auth] Improve account name parsing
This commit is contained in:
parent
a01ea511e9
commit
59a68b56bc
@ -170,8 +170,10 @@ class Code {
|
||||
if (uri.queryParameters.containsKey("issuer") && !path.contains(":")) {
|
||||
return path;
|
||||
}
|
||||
return path.split(':')[1];
|
||||
} catch (e) {
|
||||
return path
|
||||
.substring(path.indexOf(':') + 1); // return data after first colon
|
||||
} catch (e, s) {
|
||||
Logger('_getAccount').severe('Error while parsing account', e, s);
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user