Explorar o código

[FIX] username get

Gogs %!s(int64=7) %!d(string=hai) anos
pai
achega
6f7cfa8558
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      api/utils/jwt_token.py

+ 2 - 2
api/utils/jwt_token.py

@@ -69,12 +69,12 @@ def get_user(token):
 '''
 def get_username(token):
     user = get_user(token)
-
+    
     # Check if exists user
     if not user:
         return user
 
-    return user.name
+    return user.username
 
 '''
 '''