Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

[user admin api] You can accidentally deactivate a user by setting the "deactivated" param to a str #6989

Closed
@anoadragon453

Description

@anoadragon453

If you send the following to PUT /_synapse/admin/v2/users/@bob:test:

{
  "deactivated": "false"
}

You will still deactivate the user, because strings are truthy :)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions