Skip to content

Commit

Permalink
improve username generator
Browse files Browse the repository at this point in the history
  • Loading branch information
MsLolita committed Nov 2, 2024
1 parent 9a7607f commit c9a1a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/nodepay_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def _ping_headers(self, access_token: str):

async def register(self, ref_code: str, captcha_service):
captcha_token = await captcha_service.get_captcha_token_async()
username = (generate_username()[0][:20] + Person.random_string_old(random.randint(1, 5)) +
str(random.randint(1, 999)))
username = (generate_username()[0] + Person.random_string_old(random.randint(1, 5)) +
str(random.randint(1, 999)))[:20]
json_data = {
'email': self.email,
'password': self.password,
Expand Down

0 comments on commit c9a1a08

Please sign in to comment.