This commit is contained in:
Yuli
2020-02-02 18:28:18 +02:00
parent c4bbac123b
commit 357ecb9d47

View File

@@ -97,7 +97,7 @@ func (dbobj dbcon) checkXtoken(xtokenUUID string) bool {
} }
func (dbobj dbcon) checkUserAuthXToken(xtokenUUID string) (tokenAuthResult, error) { func (dbobj dbcon) checkUserAuthXToken(xtokenUUID string) (tokenAuthResult, error) {
var result tokenAuthResult result := tokenAuthResult{}
if isValidUUID(xtokenUUID) == false { if isValidUUID(xtokenUUID) == false {
return result, errors.New("failed to authenticate") return result, errors.New("failed to authenticate")
} }