서버 noauth 플래그를 알림

This commit is contained in:
2023-08-22 19:53:30 +09:00
parent e3afb58634
commit 197ee7127b

View File

@ -666,6 +666,9 @@ func (sh *serviceDescription) authorize(w http.ResponseWriter, r *http.Request)
"newAccount": newaccount,
"accid": newauth.Accid.Hex(),
}
if *noauth {
output["noauth"] = true
}
bt, _ := json.Marshal(output)
w.Write(bt)
} else if len(session) > 0 {