From 112b773ffb7062cf7d1ff34bbba03600ee9a7050 Mon Sep 17 00:00:00 2001 From: Timothy Date: Fri, 30 Aug 2019 11:56:56 +0800 Subject: [PATCH] fix issue --- utils.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils.go b/utils.go index d927681..b3fc85f 100644 --- a/utils.go +++ b/utils.go @@ -213,6 +213,13 @@ func CheckSettings(config *Settings) error { if config.LoginToken == "" { return errors.New("login token cannot be empty") } + } else if config.Provider == GOOGLE { + if config.Email == "" { + return errors.New("email cannot be empty") + } + if config.Password == "" { + return errors.New("password cannot be empty") + } } else { return errors.New("please provide supported DNS provider: DNSPod/HE/AliDNS/Cloudflare/GoogleDomain/DuckDNS") }