This commit is contained in:
Daniel Krol 2022-07-29 20:34:47 -04:00
parent 19396e9797
commit c8620f7c8c

View file

@ -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
} }