mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 19:47:14 +08:00
also check for empty
This commit is contained in:
parent
c17c583321
commit
f31f130c14
@ -224,7 +224,7 @@ func IsActiveSession(uuid []byte, clientSessionId string) (bool, error) {
|
|||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return storedId == clientSessionId, nil
|
return storedId == "" || storedId == clientSessionId, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func UpdateActiveSession(uuid []byte, clientSessionId string) error {
|
func UpdateActiveSession(uuid []byte, clientSessionId string) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user