loginsrv

Unnamed repository; edit this file 'description' to name the repository.
git clone git@jamesshield.xyz:repos/loginsrv.git
Log | Files | Refs | README | LICENSE

commit 0a1b42392644c06ec79876075db06fb5210cefc6
parent 93a2e745d5ab4ff20c6c6ba00f0862bfc506d201
Author: Sebastian Mancke <s.mancke@tarent.de>
Date:   Mon, 15 May 2017 12:07:11 +0200

fixed some reportcard findings

Diffstat:
Mlogin/handler_test.go | 6------
Mosiam/backend_test.go | 2+-
2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/login/handler_test.go b/login/handler_test.go @@ -492,12 +492,6 @@ func readCookiesParts(c *http.Cookie, parts []string) { continue case "max-age": secs, err := strconv.Atoi(val) - if err != nil || secs != 0 && val[0] == '0' { - break - } - if secs <= 0 { - secs = -1 - } c.MaxAge = secs continue case "expires": diff --git a/osiam/backend_test.go b/osiam/backend_test.go @@ -28,7 +28,7 @@ func TestBackend_Authenticate(t *testing.T) { // wrong client credentials backend, err = NewBackend(server.URL, "example-client", "XXX") NoError(t, err) - authenticated, userInfo, err = backend.Authenticate("admin", "koala") + authenticated, _, err = backend.Authenticate("admin", "koala") Error(t, err) False(t, authenticated)