Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def __init__(self):
     self.personclass = Person.Person()
     self.connection = pgsql.PGSql()
Exemplo n.º 3
0
 def __init__(self):
     self.connection = pgsql.PGSql()
     self.personclass = Person.Person()
     self.apiBaseUrl = 'http://' + cfg.host + ':' + cfg.apiport + '/api'
Exemplo n.º 4
0
 def __init__(self):
     self.personclass = personcheck.Person()