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