From d930603919df53b31f0dfc0352cffd13c0ec0e0e Mon Sep 17 00:00:00 2001 From: MMXX Date: Sun, 13 Mar 2022 21:26:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/api/views/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fir_ser/api/views/login.py b/fir_ser/api/views/login.py index f5e3bd7..a2658ff 100644 --- a/fir_ser/api/views/login.py +++ b/fir_ser/api/views/login.py @@ -405,7 +405,7 @@ class RegistView(APIView): new_data = { "username": random_username, "password": password, - "first_name": random_username[:8], + "first_name": str(username)[:130], "default_domain_name": get_min_default_domain_cname_obj(True) } if is_valid_email(username):