fix issue in username to string format
tronnet/workflows: Static Analysis -- Golang / static-go (push) Successful in 42s

This commit is contained in:
alu
2026-08-18 23:01:58 +00:00
parent f4deeb1ab6
commit 8284ffbc43
+1 -1
View File
@@ -14,7 +14,7 @@ func (g Groupname) ToString() string {
// Converts input username object to string representation.
// Uses the format uid@realm.
func (u Username) ToString() string {
return fmt.Sprintf("%s-%s", u.UserID, u.Realm)
return fmt.Sprintf("%s@%s", u.UserID, u.Realm)
}
// Parses input groupname string to gid and realm.