docs: endpoint documentation

This commit is contained in:
timokoesters
2020-07-31 14:40:28 +02:00
committed by Timo
parent cfda76860b
commit f40f1d9f75
6 changed files with 83 additions and 3 deletions

View File

@@ -859,7 +859,9 @@ impl Users {
self.remove_device(&user_id, &device_id?)?;
}
// Set the password to "" to indicate a deactivated account
// Set the password to "" to indicate a deactivated account. Hashes will never result in an
// empty string, so the user will not be able to log in again. Systems like changing the
// password without logging in should check if the account is deactivated.
self.userid_password.insert(user_id.to_string(), "")?;
// TODO: Unhook 3PID