From f0b5adc5e4fc25298042a02efc63f61aa9830ded Mon Sep 17 00:00:00 2001 From: Lan Hui <1348141770@qq.com> Date: Thu, 3 Nov 2022 22:02:32 +0800 Subject: [PATCH] Login.py: fix function name --- app/Login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Login.py b/app/Login.py index 9c89b91..66a6634 100644 --- a/app/Login.py +++ b/app/Login.py @@ -89,7 +89,7 @@ class UserName: self.username = username def validate(self): - if gen(self.username) > 20: + if len(self.username) > 20: return f'{self.username} is too long. The user name cannot exceed 20 characters.' if self.username.startswith('.'): # a user name must not start with a dot return 'Period (.) is not allowed as the first letter in the user name.'