mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/provisioning: add log when explicitly specified login ID is not found
This commit is contained in:
parent
f73480446c
commit
842f21b24f
1 changed files with 3 additions and 0 deletions
|
|
@ -500,6 +500,9 @@ func (prov *ProvisioningAPI) GetExplicitLoginForRequest(w http.ResponseWriter, r
|
|||
}
|
||||
userLogin := prov.br.Bridge.GetCachedUserLoginByID(userLoginID)
|
||||
if userLogin == nil || userLogin.UserMXID != prov.GetUser(r).MXID {
|
||||
hlog.FromRequest(r).Warn().
|
||||
Str("login_id", string(userLoginID)).
|
||||
Msg("Tried to use non-existent login, returning 404")
|
||||
mautrix.MNotFound.WithMessage("Login not found").Write(w)
|
||||
return nil, true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue