Skip to content

Commit

Permalink
Files and bugs
Browse files Browse the repository at this point in the history
Fixed some bugs and Imporved the .md files
  • Loading branch information
Ayaan-Imran committed Dec 7, 2020
1 parent a5f0c32 commit 051fbb5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Use it.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,23 @@ You have to end your programe with this function so that everything is completel
```
secure()
```


## Example of a login and signup system
```python
import uis

uis.setup("testcdcd")
mode = input("Do you want to login(1) or signup(2): ")
if mode == "1":
if uis.login(autotask=True) == True:
print("Welcome " + uis.getusername())
else:
print("Access denied")
else:
if uis.signup(autotask=True) == True:
print("Account created " + uis.getusername())
else:
print("Account creation failed")
uis.secure()
```
Binary file added __pycache__/uis.cpython-38.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions uis.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def signup(username=None, password=None, autotask=False):
else:
return False
else:
global username1
username1 = input("Please make a username: ")
password1 = input("Please make a password for security: ")

Expand Down

0 comments on commit 051fbb5

Please sign in to comment.