mirror of
https://github.com/clearml/clearml-server
synced 2025-03-03 10:43:10 +00:00
Allow two users to have the same full name
This commit is contained in:
parent
75e736e7d5
commit
f9776e4319
@ -52,7 +52,7 @@ class User(DbModelMixin, AuthDocument):
|
||||
meta = {"db_alias": Database.auth, "strict": strict}
|
||||
|
||||
id = StringField(primary_key=True)
|
||||
name = StringField(unique_with="company")
|
||||
name = StringField()
|
||||
|
||||
created = DateTimeField()
|
||||
""" User auth entry creation time """
|
||||
|
@ -215,6 +215,6 @@ def init_mongo_data():
|
||||
try:
|
||||
_ensure_user(user, company_id)
|
||||
except Exception as ex:
|
||||
log.error(f"Failed creating fixed user {user['name']}: {ex}")
|
||||
log.error(f"Failed creating fixed user {user.name}: {ex}")
|
||||
except Exception as ex:
|
||||
log.exception("Failed initializing mongodb")
|
||||
|
Loading…
Reference in New Issue
Block a user