Esempio 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
Esempio n. 2
0
 def auth(self, userCred):
     return FGAuth.auth(self.user, userCred)        
Esempio n. 3
0
def auth(userId, cred):
    return FGAuth.auth(userId, cred)