mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 18:33:46 +08:00
fix get user by uid
This commit is contained in:
@@ -34,7 +34,7 @@ API_PACKAGE = "api"
|
||||
@login_manager.user_loader
|
||||
def load_user(user_id):
|
||||
"""Load user by ID."""
|
||||
return User.get_by_id(int(user_id))
|
||||
return User.get_by(uid=int(user_id), first=True, to_dict=False)
|
||||
|
||||
|
||||
class ReverseProxy(object):
|
||||
|
Reference in New Issue
Block a user