mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-28 17:23:09 -06:00
Return string sid instead of number in /requestToken
This commit is contained in:
parent
433bc321ae
commit
6aa4152e6e
|
|
@ -94,9 +94,10 @@ func RequestEmailToken(req *http.Request, accountDB accounts.Database, userAPI u
|
|||
util.GetLogger(req.Context()).WithError(err).Error("userAPI.CreateSession failed")
|
||||
return jsonerror.InternalServerError()
|
||||
}
|
||||
resp.SID = strconv.Itoa(int(createSessionResp.Sid))
|
||||
return util.JSONResponse{
|
||||
Code: http.StatusOK,
|
||||
JSON: createSessionResp,
|
||||
JSON: resp,
|
||||
}
|
||||
} else {
|
||||
resp.SID, err = threepid.CreateSession(req.Context(), body, cfg)
|
||||
|
|
|
|||
Loading…
Reference in a new issue