mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-28 04:47:07 -04:00
Track the IP users connect with. Add an admin column to users table.
This commit is contained in:
parent
7a8307fe7c
commit
0fdf308874
9 changed files with 67 additions and 12 deletions
|
@ -50,10 +50,10 @@ class ProfileTestCase(unittest.TestCase):
|
|||
datastore=None,
|
||||
)
|
||||
|
||||
def _get_user_by_token(token=None):
|
||||
def _get_user_by_req(request=None):
|
||||
return hs.parse_userid(myid)
|
||||
|
||||
hs.get_auth().get_user_by_token = _get_user_by_token
|
||||
hs.get_auth().get_user_by_req = _get_user_by_req
|
||||
|
||||
hs.get_handlers().profile_handler = self.mock_handler
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue