mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-11-02 02:48:05 +00:00
refactor error message
This commit is contained in:
@@ -89,7 +89,7 @@ func (dbobj dbcon) checkUserAuthXToken(xtokenUUID string) (tokenAuthResult, erro
|
||||
return result, errors.New("failed to authenticate")
|
||||
}
|
||||
tokenType := record["type"].(string)
|
||||
fmt.Printf("token type: %s\n", tokenType)
|
||||
fmt.Printf("xtoken type: %s\n", tokenType)
|
||||
if tokenType == "root" {
|
||||
// we have this admin user
|
||||
rootXTOKEN = xtokenHashed
|
||||
|
||||
Reference in New Issue
Block a user