1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 10:22:46 +00:00

Improve login and create user (#5458)

* add create oauth/ldap/saml user in UserManager

* improve admin add/import users

* improve dingtalk/weixin/work_weixin login/create user

* improve saml login/create user

* improve oauth login/create user

* login ldap user in seahub

* improve invite user

* fix code

* fix github test action

* fix test

* fix saml login

* optimize code

* specify the version of python-ldap

* fix code

* improve code

* add get_old_user

* optimize oauth login code

* optimize code

* remove LDAP_USER_UNIQUE_ID

* remove test_primary_id

* improve authenticate user

* improve saml login

* optimize code
This commit is contained in:
WJH
2023-06-19 13:06:15 +08:00
committed by GitHub
parent 42773a692d
commit 532fa5ef8c
45 changed files with 689 additions and 591 deletions

View File

@@ -72,12 +72,11 @@ class AdminUsersTest(BaseTestCase):
json_resp = json.loads(resp.content)
self.assertEqual(200, resp.status_code)
assert json_resp['email'] == self.tmp_email
assert json_resp['contact_email'] == self.tmp_email
ccnet_email = ccnet_api.get_emailuser(self.tmp_email)
assert ccnet_email.email == self.tmp_email
ccnet_email = ccnet_api.get_emailuser(json_resp['email'])
self.remove_user(self.tmp_email)
self.remove_user(ccnet_email.email)
def test_create_with_invalid_user_permission(self):
self.login_as(self.user)