mirror of https://github.com/jlelse/GoBlog
IndieAuth: Allow empty scope
This commit is contained in:
parent
8da8a0de26
commit
38e985477c
|
@ -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)
|
http.Error(w, "response_type must be empty or id or code", http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if data.ResponseType == "code" && len(data.Scopes) < 1 {
|
// if data.ResponseType == "code" && len(data.Scopes) < 1 {
|
||||||
http.Error(w, "scope is missing or empty", http.StatusBadRequest)
|
// http.Error(w, "scope is missing or empty", http.StatusBadRequest)
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
render(w, "indieauth", &renderData{
|
render(w, "indieauth", &renderData{
|
||||||
Data: data,
|
Data: data,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue