Famcy/_CONSOLE_FOLDER_/iam/page.py
def authenticate_user(self, user, password):
		"""
		This is the function to authenticate
		the user info. The input user should
		at least have the id attribute. 
		"""
		if isinstance(CustomLoginManager.login_db, list):
			for member in CustomLoginManager.login_db:
				sha_password = hashlib.sha256(password.encode()).hexdigest()
				print("sha_password: ", sha_password)
				if user.name == member["username"] and sha_password == member["password"]:
					return {"indicator": True, "message": member}
		return {"indicator": False, "message": None}

		This is the function to authenticate
		the user info. The input user should
		at least have the id attribute. 
		
This is the function to authenticate
the user info. The input user should
at least have the id attribute.
This is the function to authenticate the user info . The input user should at least have the id attribute .
def authenticate_user(self, user, password):
		if isinstance(CustomLoginManager.login_db, list):
			for member in CustomLoginManager.login_db:
				sha_password = hashlib.sha256(password.encode()).hexdigest()
				print("sha_password: ", sha_password)
				if user.name == member["username"] and sha_password == member["password"]:
					return {"indicator": True, "message": member}
		return {"indicator": False, "message": None}
def authenticate_user ( self , user , password ) : if isinstance ( CustomLoginManager . login_db , list ) : for member in CustomLoginManager . login_db : sha_password = hashlib . sha256 ( password . encode ( ) ) . hexdigest ( ) print ( "sha_password: " , sha_password ) if user . name == member [ "username" ] and sha_password == member [ "password" ] : return { "indicator" : True , "message" : member } return { "indicator" : False , "message" : None }
This is the function to authenticate
the user info.
This is the function to authenticate the user info .
"""
		This is the function to authenticate
		the user info. The input user should
		at least have the id attribute. 
		"""
self
user
password