Skip to content

Commit

Permalink
changed login method
Browse files Browse the repository at this point in the history
  • Loading branch information
new92 committed Feb 2, 2024
1 parent a25f82b commit 1abcd56
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions IAM.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,28 +546,27 @@ def main():
print(f"\n")
print(f"|--------------------|LOGIN|--------------------|")
print(f"\n")
username=input(f"{yellow}[::] Please enter your username >>> ")
username=input(f"{yellow}[::] Please enter your username >>> ").lower().strip()
while checkUser(username):
checkOpt(username, "username")
sleep(1)
username=input(f"{yellow}[::] Please enter again your username >>> ")
username=input(f"{yellow}[::] Please enter again your username >>> ").lower().strip()
while valUser(username):
resp = CheckVal()
if type(resp) == bool:
CheckVal()
else:
username = resp
username = username.lower().strip()
global globalu
globalu = username
password=input(f"{yellow}[::] Please enter your password >>> ")
password=input(f"{yellow}[::] Please enter your password >>> ").strip()
while password in NULL:
print(f"{red}[✕] This field can't be blank !")
sleep(1)
password=input(f"{yellow}[::] Please enter again your password >>> ")
password = password.strip()
password=input(f"{yellow}[::] Please enter again your password >>> ").strip()
path=input(f"{yellow}[::] Please enter the path to the session file >>> ").strip()
try:
loader.login(username,password)
loader.load_session_from_file(username, path)
client.login(username,password,True)
except Exception as ex:
Except(ex)
Expand Down

0 comments on commit 1abcd56

Please sign in to comment.