Comment
This commit is contained in:
parent
19396e9797
commit
c8620f7c8c
1 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,8 @@ func (s *Server) getClientSaltSeed(w http.ResponseWriter, req *http.Request) {
|
||||||
|
|
||||||
seed, err := s.store.GetClientSaltSeed(email)
|
seed, err := s.store.GetClientSaltSeed(email)
|
||||||
if err == store.ErrWrongCredentials {
|
if err == store.ErrWrongCredentials {
|
||||||
|
// Going with 404 instead of 401 because we're not really authenticating
|
||||||
|
// here. It's an open API and anyone can peep someone else's salt seed.
|
||||||
errorJson(w, http.StatusNotFound, "No match for email")
|
errorJson(w, http.StatusNotFound, "No match for email")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue