in docker/services/user_service.py [0:0]
def __validate_password(password):
errors = []
upper = any(char.isupper() for char in password)
numeric = any(char.isdigit() for char in password)
symbol = any(not char.isalnum() for char in password)
if not upper:
errors.append('Password must have uppercase characters')
if not numeric:
errors.append('Password must have numeric characters')
if not symbol:
errors.append('Password must have symbol characters')
if len(password) < 8:
errors.append(f'Invalid length. Valid min length: 8')
if errors:
return errors