<reponame>ThukuWakogi/password-locker<gh_stars>0
import sys
sys.path.append('../credential')

from ..credential.credential import Credential

class User():
  '''
  blueprint for user data
  '''

  def __init__(self, *, username=None, password=<PASSWORD>, credentials=[]):
    '''
    constructor for instantiating an empty object

    Args:
      username: users' username, must be unique
      password: <PASSWORD>
    '''

    self.username = username
    self.password = password
    self.credentials = credentials

    # if username.strip() == '' or username == None:
    #   self.username = username
    #   self.password = password
    # else:
    #   self.username = username
    #   self.password = (password, self.generatePassword())[password.strip() == '' or password.strip == None]

    

  def generatePassword(self):
    '''
    generate random password
    '''

    import random, string
    return ''.join(random.choice(string.ascii_lowercase) for i in range(10))

import sys
sys.path.append('../credential')

from ..credential.credential import Credential

class User():
  '''
  blueprint for user data
  '''

  def __init__(self, *, username=None, password=<PASSWORD>, credentials=[]):
    '''
    constructor for instantiating an empty object

    Args:
      username: users' username, must be unique
      password: <PASSWORD>
    '''

    self.username = username
    self.password = password
    self.credentials = credentials

    # if username.strip() == '' or username == None:
    #   self.username = username
    #   self.password = password
    # else:
    #   self.username = username
    #   self.password = (password, self.generatePassword())[password.strip() == '' or password.strip == None]

    

  def generatePassword(self):
    '''
    generate random password
    '''

    import random, string
    return ''.join(random.choice(string.ascii_lowercase) for i in range(10))
blueprint for user data constructor for instantiating an empty object      Args:       username: users' username, must be unique       password: <PASSWORD> # if username.strip() == '' or username == None: #   self.username = username #   self.password = password # else: #   self.username = username #   self.password = (password, self.generatePassword())[password.strip() == '' or password.strip == None] generate random password