Exemplo n.º 1
0
 def auth(self, userId, userCred, provider):
     """
     Check the status of the user and verify the passwd.        
     
     return True, False, "NoActive", "NoUser"
     """
     cred = FGCredential(provider, userCred)
     status = FGAuth.auth(userId, cred)
     if status:
         userstatus=self.userStore.getUserStatus(userId)
         if userstatus=="Active":
             self.userStore.updateLastLogin(userId)
         else:
             status=userstatus        
                 
     return status
Exemplo n.º 2
0
 def auth(self, userCred):
     return FGAuth.auth(self.user, userCred)        
Exemplo n.º 3
0
def auth(userId, cred):
    return FGAuth.auth(userId, cred)