convert mesh username to lowercase before creating token
@@ -713,7 +713,7 @@ class Agent(BaseAuditModel):
key1 = key[0:48]
key2 = key[48:]
msg = '{{"a":{}, "u":"{}","time":{}}}'.format(
- action, user, int(time.time())
+ action, user.lower(), int(time.time())
)
iv = get_random_bytes(16)
