mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 13:44:58 -04:00
Fix v2_alpha registration. Add unit tests.
V2 Registration forced everyone (including ASes) to create a password for a user, when ASes should be able to omit passwords. Also unbreak AS registration in general which checked too early if the given username was claimed by an AS; it was checked before knowing if the AS was the one doing the registration! Add unit tests for AS reg, user reg and disabled_registration flag.
This commit is contained in:
parent
c472d6107e
commit
a4d62ba36a
3 changed files with 204 additions and 55 deletions
|
@ -73,7 +73,8 @@ class RegistrationHandler(BaseHandler):
|
|||
localpart : The local part of the user ID to register. If None,
|
||||
one will be randomly generated.
|
||||
password (str) : The password to assign to this user so they can
|
||||
login again.
|
||||
login again. This can be None which means they cannot login again
|
||||
via a password (e.g. the user is an application service user).
|
||||
Returns:
|
||||
A tuple of (user_id, access_token).
|
||||
Raises:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue