From 5cafaea0827d02ed7665814e4dbfdef67762b0e7 Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Wed, 22 Sep 2021 17:01:16 +0800 Subject: [PATCH] fix: token login error under special cases --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4491a14..8896224 100644 --- a/main.go +++ b/main.go @@ -223,7 +223,7 @@ func main() { } copy(PasswordHash[:], ph) } - } else { + } else if len(conf.Account.Password) > 0 { PasswordHash = md5.Sum([]byte(conf.Account.Password)) } if !isFastStart {