Skip to content
This repository was archived by the owner on May 24, 2025. It is now read-only.

Commit 13eedbb

Browse files
committed
Change on how the password input works
- Instead of exiting, it loops until it gets a valid password. - Some code optimizations
1 parent bac4ede commit 13eedbb

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

main.py

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,25 @@ async def main():
1717
print("Checking for updates...")
1818
await lib.checkUpdate()
1919

20-
passw = (
21-
input(
22-
"\033[1m"
23-
"\n(RECOMMENDED) Press enter in order to use the default password"
24-
"\033[0m"
25-
"\nIf you prefer to use your own password, do make sure that you password fulfill the below requirements:\n- Use at least 8 characters\n- Use a lowercase letter\n- Use an uppercase letter\n- Use at least 1 special character (!@#$%...)\n- Use at least 1 number\nPassword: "
20+
while True:
21+
passw = (
22+
input(
23+
"\033[1m"
24+
"\n(RECOMMENDED) Press enter in order to use the default password"
25+
"\033[0m"
26+
"\nIf you prefer to use your own password, do make sure that you password fulfill the below requirements:\n- Use at least 8 characters\n- Use a lowercase letter\n- Use an uppercase letter\n- Use at least 1 special character (!@#$%...)\n- Use at least 1 number\nPassword: "
27+
)
28+
or "Qing762.chy"
2629
)
27-
or "Qing762.chy"
28-
)
29-
30-
if passw != "Qing762.chy":
31-
result = await lib.checkPassword(passw)
32-
print(result)
33-
if "does not meet the requirements" in result:
34-
return
30+
if passw != "Qing762.chy":
31+
result = await lib.checkPassword(passw)
32+
print(result)
33+
if not result:
34+
break
35+
elif "does not meet the requirements" not in result:
36+
break
37+
else:
38+
break
3539

3640
accounts = []
3741
while True:
@@ -124,25 +128,20 @@ async def main():
124128
if tab.wait.url_change("https://www.exitlag.com/clientarea.php", timeout=60):
125129
if tab.ele(".alert--title", timeout=60):
126130
link = None
127-
128131
for _ in range(10):
129132
result = page.listen.wait()
130133
content = result.response.body["emails"]
131-
132134
if not content:
133135
continue
134-
135136
for _, y in content.items():
136137
if (
137138
y["subject"]
138139
== "[ExitLag] Please confirm your e-mail address"
139140
):
140-
141141
links = re.findall(
142142
r"http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+",
143143
y["body"],
144144
)
145-
146145
for link in links:
147146
if link.startswith(
148147
"https://www.exitlag.com/user/verify"
@@ -153,7 +152,6 @@ async def main():
153152
break
154153
if link:
155154
break
156-
157155
if link:
158156
bar.set_description(
159157
f"Verifying email address [{x + 1}/{executionCount}]"

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.91
1+
v3.92

0 commit comments

Comments
 (0)