def setPassword(self, user, password, save=True):
        if password is None:
            user['salt'] = None
        else:
            salt, alg = self.model('password').encryptAndStore(password)
            user['salt'] = salt
            user['hashAlg'] = alg

        if save:
            self.save(user)
Converts a load hook into an application processor.
dataset/ETHPy150Open girder/girder/girder/models/user.py/User.setPassword--crossover with--dataset/ETHPy150Open joxeankoret/nightmare/runtime/web/application.py/loadhook