Skip to content

Commit

Permalink
Create user.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 10, 2024
1 parent ca3c154 commit 91e72f7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions blockchain_integration/pi_network/pi-stablecoin/services/user.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from models import User

class UserService:
def __init__(self):
self.users = []

def get_users(self):
return self.users

def add_user(self, user):
self.users.append(user)
return self.users

def validate_user(self, user):
if user.username == "":
return False
if user.password == "":
return False
return True

0 comments on commit 91e72f7

Please sign in to comment.