🐛 Sending back userId rather than just localpart

This commit is contained in:
danielaloni 2022-09-21 12:24:43 +03:00
parent b0955b532b
commit 6595536cab

View file

@ -73,7 +73,7 @@ func Login(
return util.JSONResponse{ return util.JSONResponse{
Code: http.StatusOK, Code: http.StatusOK,
JSON: loginResponse{ JSON: loginResponse{
UserID: login.Username(), UserID: userutil.MakeUserID(login.Username(), cfg.Matrix.ServerName),
AccessToken: "", AccessToken: "",
HomeServer: cfg.Matrix.ServerName, HomeServer: cfg.Matrix.ServerName,
DeviceID: "", DeviceID: "",