ssh: Fix response code for ssh/verify

This commit is contained in:
vishalnayak 2016-02-16 19:46:29 -05:00
parent 4e896ca0d2
commit a6f3b31a36

View file

@ -65,7 +65,7 @@ func (b *backend) pathVerifyWrite(req *logical.Request, d *framework.FieldData)
return nil, err
}
if otpEntry == nil {
return nil, nil
return logical.ErrorResponse("OTP not found"), nil
}
// Delete the OTP if found. This is what makes the key an OTP.