mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-29 01:33:10 -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")
|
util.GetLogger(req.Context()).WithError(err).Error("userAPI.CreateSession failed")
|
||||||
return jsonerror.InternalServerError()
|
return jsonerror.InternalServerError()
|
||||||
}
|
}
|
||||||
|
resp.SID = strconv.Itoa(int(createSessionResp.Sid))
|
||||||
return util.JSONResponse{
|
return util.JSONResponse{
|
||||||
Code: http.StatusOK,
|
Code: http.StatusOK,
|
||||||
JSON: createSessionResp,
|
JSON: resp,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
resp.SID, err = threepid.CreateSession(req.Context(), body, cfg)
|
resp.SID, err = threepid.CreateSession(req.Context(), body, cfg)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue