matrix-org / prosody-mod-auth-matrix-user-verification

Matrix user verification auth for Prosody
Apache License 2.0
24 stars 12 forks source link

User verification doesn't respect that `m.room.power_levels` key `state_default` is optional and defaults to 50 #21

Closed reivilibre closed 10 months ago

reivilibre commented 1 year ago

https://github.com/matrix-org/prosody-mod-auth-matrix-user-verification/blob/2839499cb03894d8cfc3e5b2219441427cb133d8/mod_auth_matrix_user_verification.lua#L155

https://spec.matrix.org/v1.8/client-server-api/#mroompower_levels

When state_default is not set, we should assume it is 50.

The Rust SDK currently omits this key when setting new power levels, if it is at its default value.