Skip to content

Commit 30fce30

Browse files
Merge pull request #2 from ZytroCode/upstream
Bug fixes
2 parents ef37478 + 5223020 commit 30fce30

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

testos.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
pas = input(str("Enter your password to login: "))
2222

2323
lines = [name]
24+
25+
if not os.path.exists("user"): # Checks if folder doesn't exist
26+
os.mkdir("user") # Create folder if doesn't exist
27+
2428
with open("user/username.txt", "w") as f:
2529
f.writelines(name)
2630

@@ -38,6 +42,9 @@
3842
l_p = login_pass.read()
3943
l_n = login_name.read()
4044

45+
else: # If no input then exit the program
46+
exit()
47+
4148
while True:
4249
login = input(str("Enter your password To " + l_n + ": "))
4350
if login == l_p:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy