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