Skip to content

Commit

Permalink
fix(auth): fixed auth session error check
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed Apr 22, 2020
1 parent f5665ec commit feebbba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/auth/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package auth

import (
"encoding/json"
"errors"
"github.com/GoAdminGroup/go-admin/context"
"github.com/GoAdminGroup/go-admin/modules/config"
"github.com/GoAdminGroup/go-admin/modules/db"
Expand Down Expand Up @@ -147,7 +146,7 @@ func (driver *DBDriver) Load(sid string) (map[string]interface{}, error) {
}

if sesModel == nil {
return map[string]interface{}{}, errors.New("invalid session id")
return map[string]interface{}{}, nil
}

var values map[string]interface{}
Expand Down

0 comments on commit feebbba

Please sign in to comment.