Commit e724cfe7 authored by Ivar Derksen's avatar Ivar Derksen Committed by Sietse Ringers
Browse files

Fixed spelling mistake in PinCheckSuccess variable name

parent 6de8bbf8
......@@ -16,7 +16,7 @@ type LogEntryType string
const (
PinCheckRefused = "PIN_CHECK_REFUSED"
PinCheckSucces = "PIN_CHECK_SUCCESS"
PinCheckSuccess = "PIN_CHECK_SUCCESS"
PinCheckFailed = "PIN_CHECK_FAILED"
PinCheckBlocked = "PIN_CHECK_BLOCKED"
IrmaSession = "IRMA_SESSION"
......
......@@ -30,7 +30,7 @@ func TestMemoryDBUserManagement(t *testing.T) {
err = db.AddEmailVerification(nuser, "test@test.com", "testtoken")
assert.NoError(t, err)
err = db.AddLog(nuser, PinCheckSucces, nil)
err = db.AddLog(nuser, PinCheckSuccess, nil)
assert.NoError(t, err)
ok, tries, wait, err := db.ReservePincheck(nuser)
......
......@@ -394,7 +394,7 @@ func (s *Server) handleVerifyPin(w http.ResponseWriter, r *http.Request) {
// Do not send to user
}
err = s.db.AddLog(user, PinCheckSucces, nil)
err = s.db.AddLog(user, PinCheckSuccess, nil)
if err != nil {
s.conf.Logger.WithField("error", err).Error("Could not add log entry for user")
server.WriteError(w, server.ErrorInternal, err.Error())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment