Skip to content

Commit

Permalink
fix for deleting dangling users when rest_auth did not respond, tinod…
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Dec 9, 2020
1 parent c9cd224 commit f75c84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/auth/rest/auth_rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (a *authenticator) Authenticate(secret []byte, remoteAddr string) (*auth.Re
resp.Record.Uid = user.Uid()
_, err = a.callEndpoint("link", resp.Record, secret, "")
if err != nil {
store.Users.Delete(resp.Record.Uid, false)
store.Users.Delete(resp.Record.Uid, true)
return nil, nil, err
}
}
Expand Down

0 comments on commit f75c84e

Please sign in to comment.