Skip to content

Commit e6e073c

Browse files
committed
[api] return login fo device registration with an existing account
1 parent 87c3be6 commit e6e073c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/sms-gateway/handlers/mobile.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ func (h *mobileHandler) postDevice(c *fiber.Ctx) (err error) {
8787

8888
if userauth.HasUser(c) {
8989
user = userauth.GetUser(c)
90+
login = user.ID
9091
} else {
9192
id := h.idGen()
9293
login = strings.ToUpper(id[:6])

0 commit comments

Comments
 (0)