Skip to content

Commit

Permalink
Merge pull request #1143 from yyyangw/feature/login_models_update
Browse files Browse the repository at this point in the history
解决helm charts部署项目,账户无法登录的问题
  • Loading branch information
Lingghh authored Jul 24, 2024
2 parents d2dab5d + 2d33b4e commit e97fbac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/projects/login/login/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import AbstractBaseUser
from django.contrib.auth.models import AbstractBaseUser, UserManager

from login.lib.Cipher import base62_cipher
from login.lib.snowflake import IdWorker, GenerateId
Expand Down Expand Up @@ -38,6 +38,8 @@ class UserInfo(AbstractBaseUser):
(0, "unknown")
)

objects = UserManager()

uid = models.CharField(max_length=20, primary_key=True, default=gen_id, unique=True)
nickname = models.CharField(max_length=1000)
avatar_url = models.CharField(max_length=500)
Expand Down

0 comments on commit e97fbac

Please sign in to comment.