From 5746d9430a9226f51dbb5a969eb15902ecc2fe04 Mon Sep 17 00:00:00 2001 From: cuigh Date: Fri, 4 May 2018 14:15:28 +0800 Subject: [PATCH] Fix #8 --- security/auth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security/auth.go b/security/auth.go index 662206e..c8b68e0 100644 --- a/security/auth.go +++ b/security/auth.go @@ -47,6 +47,8 @@ func Validator(setting *model.Setting) func(name, pwd string) (ticket string, er } err = biz.User.Create(mu, nil) } + } else { + err = certify.ErrInvalidToken } // replace user session, one session is allowed per user.