slapid and player now links when registering
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
var ErrNoSteam error = errors.New("steam connection not found")
|
||||
|
||||
func (s *OAuthSession) GetSteamID() (string, error) {
|
||||
connections, err := s.UserConnections()
|
||||
if err != nil {
|
||||
@@ -14,5 +16,5 @@ func (s *OAuthSession) GetSteamID() (string, error) {
|
||||
return conn.ID, nil
|
||||
}
|
||||
}
|
||||
return "", errors.New("steam connection not found")
|
||||
return "", ErrNoSteam
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user