Skip to content

Commit

Permalink
test: fixed username length test
Browse files Browse the repository at this point in the history
  • Loading branch information
pateljannat committed May 19, 2023
1 parent 4b2ba96 commit a0b06be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lms/overrides/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ def validate_username_duplicates(self):
if " " in self.username:
self.username = self.username.replace(" ", "")

if len(self.username) < 4:
self.username = self.email.replace("@", "").replace(".", "")

def validate_skills(self):
unique_skills = []
for skill in self.skill:
Expand Down

0 comments on commit a0b06be

Please sign in to comment.