We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06c3fc4 commit a653926Copy full SHA for a653926
handlers/auth.go
@@ -83,6 +83,12 @@ func (ah AuthHandler) Authenticate(c *fiber.Ctx) error {
83
accId, err := c.Request().URI().QueryArgs().GetUint("accountId")
84
if err == nil {
85
accountId = accId
86
+ } else {
87
+ splittedUsername := strings.Split(body.Username, "$")
88
+ if len(splittedUsername) > 1 {
89
+ accountId, _ = strconv.Atoi(splittedUsername[1])
90
+ body.Username = splittedUsername[0]
91
+ }
92
}
93
94
0 commit comments