Explorar el Código

[FIX] username get

Gogs hace 7 años
padre
commit
6f7cfa8558
Se han modificado 1 ficheros con 2 adiciones y 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
 
 '''
 '''