mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-14 02:15:27 -04:00
Simplify LoginHander and AuthHandler
* Merge LoginHandler -> AuthHandler * Add a bunch of documentation * Improve some naming * Remove unused branches I will start merging the actual logic of the two handlers shortly
This commit is contained in:
parent
a23a760b3f
commit
415c2f0549
9 changed files with 93 additions and 131 deletions
|
@ -78,9 +78,8 @@ class LoginRestServlet(ClientV1RestServlet):
|
|||
login_submission["user"] = UserID.create(
|
||||
login_submission["user"], self.hs.hostname).to_string()
|
||||
|
||||
handler = self.handlers.login_handler
|
||||
token = yield handler.login(
|
||||
user=login_submission["user"],
|
||||
token = yield self.handlers.auth_handler.login_with_password(
|
||||
user_id=login_submission["user"],
|
||||
password=login_submission["password"])
|
||||
|
||||
result = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue