def set_password(self, request, password, user=None, auth_key=None):
        api = request.app.api(request)
        if not auth_key:
            raise AuthenticationError('Missing authentication key')
        url = '%s/%s' % (self.reset_password_url, auth_key)
        data = {'password': password, 'password_repeat': password}
        response = api.post(url, data=data)
        return response.json()
dataset/ETHPy150Open quantmind/lux/lux/extensions/rest/backends/browser.py/ApiSessionBackend.set_password/original