feat: specify a custom "terms of service" link (#13068)

This commit is contained in:
Kayla Washburn-Love
2024-04-25 16:36:51 -06:00
committed by GitHub
parent 341114a020
commit 74f27719b8
19 changed files with 131 additions and 16 deletions
+1
View File
@@ -472,6 +472,7 @@ func (api *API) userAuthMethods(rw http.ResponseWriter, r *http.Request) {
}
httpapi.Write(r.Context(), rw, http.StatusOK, codersdk.AuthMethods{
TermsOfServiceURL: api.DeploymentValues.TermsOfServiceURL.Value(),
Password: codersdk.AuthMethod{
Enabled: !api.DeploymentValues.DisablePasswordAuth.Value(),
},