satellite/console/auth: return in error handle added (#3639)

This commit is contained in:
Nikolai Siedov 2019-11-22 21:44:57 +02:00 committed by GitHub
parent 9af97d366a
commit e5934cc92a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,6 +117,7 @@ func (a *Auth) Register(w http.ResponseWriter, r *http.Request) {
)
if err != nil {
a.serveJSONError(w, err)
return
}
token, err := a.service.GenerateActivationToken(ctx, user.ID, user.Email)