mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 00:51:20 +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 {
|
||||
final result =
|
||||
await ProvidersController.currentDnsProvider!.tryInitApiByToken(token);
|
||||
return result.success
|
||||
? (await ProvidersController.currentDnsProvider!.getZoneId(
|
||||
domain,
|
||||
))
|
||||
.data
|
||||
: null;
|
||||
if (!result.success) {
|
||||
return null;
|
||||
}
|
||||
await setDnsApiToken(token);
|
||||
return (await ProvidersController.currentDnsProvider!.getZoneId(
|
||||
domain,
|
||||
)).data;
|
||||
}
|
||||
|
||||
Future<Map<String, bool>> isDnsAddressesMatch(
|
||||
|
|
Loading…
Reference in a new issue