config package refactor

This commit is contained in:
2023-10-24 16:07:38 +02:00
parent 0c7415df28
commit b512e996ad
11 changed files with 33 additions and 73 deletions

View File

@@ -25,8 +25,8 @@ func Login(w http.ResponseWriter, r *http.Request) {
}
var (
username = config.Instance().GetConfig().Username
password = config.Instance().GetConfig().Password
username = config.Instance().Username
password = config.Instance().Password
)
if username != req.Username || password != req.Password {