diff --git a/app/views.py b/app/views.py index 283100d..e024c5d 100644 --- a/app/views.py +++ b/app/views.py @@ -30,7 +30,7 @@ def register(): phone_number=data.get('cellphone'), # 确保JSON中的键和这里匹配 password=data.get('password'), identity=data.get('identity'), - is_active=True # 或者根据你的逻辑设置 + status=True # 或者根据你的逻辑设置 ) db_manager = DatabaseManager() if not db_manager.user_exists(user.phone_number):