IndieAuth: Allow empty scope

This commit is contained in:
Jan-Lukas Else 2020-12-01 14:36:16 +01:00
parent 8da8a0de26
commit 38e985477c
1 changed files with 4 additions and 4 deletions

View File

@ -55,10 +55,10 @@ func indieAuthAuthGet(w http.ResponseWriter, r *http.Request) {
http.Error(w, "response_type must be empty or id or code", http.StatusBadRequest)
return
}
if data.ResponseType == "code" && len(data.Scopes) < 1 {
http.Error(w, "scope is missing or empty", http.StatusBadRequest)
return
}
// if data.ResponseType == "code" && len(data.Scopes) < 1 {
// http.Error(w, "scope is missing or empty", http.StatusBadRequest)
// return
// }
render(w, "indieauth", &renderData{
Data: data,
})