mirror of
https://github.com/clearml/clearml-server
synced 2025-05-03 19:51:11 +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}
|
meta = {"db_alias": Database.auth, "strict": strict}
|
||||||
|
|
||||||
id = StringField(primary_key=True)
|
id = StringField(primary_key=True)
|
||||||
name = StringField(unique_with="company")
|
name = StringField()
|
||||||
|
|
||||||
created = DateTimeField()
|
created = DateTimeField()
|
||||||
""" User auth entry creation time """
|
""" User auth entry creation time """
|
||||||
|
@ -215,6 +215,6 @@ def init_mongo_data():
|
|||||||
try:
|
try:
|
||||||
_ensure_user(user, company_id)
|
_ensure_user(user, company_id)
|
||||||
except Exception as ex:
|
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:
|
except Exception as ex:
|
||||||
log.exception("Failed initializing mongodb")
|
log.exception("Failed initializing mongodb")
|
||||||
|
Loading…
Reference in New Issue
Block a user