def verify_pw(username, password): authenticate = authentication.Authentication() user = authenticate.verify_user_pass(username, password) print(user) if not user: return False g.user = user # g.user = user[0] # CHECK IF USER AND ROLES EXIST IN cide_person and cide_role tables, if not create one if yes return OK check = personcheck.Person() person = check.checkLoggedUser(user) print("CHECK LOGGED USER STATUS: %s" % person) return True
def __init__(self): self.personclass = Person.Person() self.connection = pgsql.PGSql()
def __init__(self): self.connection = pgsql.PGSql() self.personclass = Person.Person() self.apiBaseUrl = 'http://' + cfg.host + ':' + cfg.apiport + '/api'
def __init__(self): self.personclass = personcheck.Person()