We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dd14bc commit 3683ca2Copy full SHA for 3683ca2
users/csrf/csrf.go
@@ -62,14 +62,12 @@ func (m *Module) Decode(token string) (*csrfPayload, error) {
62
func (m *Module) Verify(state, token string) (bool, error) {
63
obj, err := jose.ParseEncrypted(token)
64
if err != nil {
65
- m.Logger.Error(errors.Wrap(err))
66
- return false, nil
+ return false, errors.Wrap(err)
67
}
68
b, err := obj.Decrypt(m.decryptionKey)
69
csrfPayload := &csrfPayload{}
70
if err = json.Unmarshal(b, csrfPayload); err != nil {
71
72
73
74
if state != csrfPayload.State {
75
return false, nil
0 commit comments