Skip to content

Commit 1643f34

Browse files
committed
[API] fix: correctly set ID and Token fields for join tokens
1 parent 4401ceb commit 1643f34

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

API/internal/rpc/server_browser.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,8 @@ func (s *ServerBrowserServer) RegisterServer(ctx context.Context, req *pbapi.Reg
529529
}
530530

531531
joinToken := &models.JoinTokenModel{
532-
ID: proxyToken,
532+
ID: util.GenerateShortToken(),
533+
Token: proxyToken,
533534
User: user.ID,
534535
Server: serverID,
535536
Created: time.Now(),

0 commit comments

Comments
 (0)