예제 #1
0
파일: user.py 프로젝트: HRSEVESOSK/cide-api
 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
예제 #2
0
 def __init__(self):
     self.personclass = Person.Person()
     self.connection = pgsql.PGSql()
예제 #3
0
 def __init__(self):
     self.connection = pgsql.PGSql()
     self.personclass = Person.Person()
     self.apiBaseUrl = 'http://' + cfg.host + ':' + cfg.apiport + '/api'
예제 #4
0
 def __init__(self):
     self.personclass = personcheck.Person()