mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 09:31:13 +00:00
feat(recovery): Couldn't save the dns token
This commit is contained in:
parent
d2d8add10d
commit
e1e4779c51
|
@ -170,12 +170,13 @@ class ServerInstallationRepository {
|
||||||
Future<String?> getDomainId(final String token, final String domain) async {
|
Future<String?> getDomainId(final String token, final String domain) async {
|
||||||
final result =
|
final result =
|
||||||
await ProvidersController.currentDnsProvider!.tryInitApiByToken(token);
|
await ProvidersController.currentDnsProvider!.tryInitApiByToken(token);
|
||||||
return result.success
|
if (!result.success) {
|
||||||
? (await ProvidersController.currentDnsProvider!.getZoneId(
|
return null;
|
||||||
domain,
|
}
|
||||||
))
|
await setDnsApiToken(token);
|
||||||
.data
|
return (await ProvidersController.currentDnsProvider!.getZoneId(
|
||||||
: null;
|
domain,
|
||||||
|
)).data;
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<Map<String, bool>> isDnsAddressesMatch(
|
Future<Map<String, bool>> isDnsAddressesMatch(
|
||||||
|
|
Loading…
Reference in a new issue