'Post request to allow an administrator reset password for a user.
This need a user have a administrator access in Synapse.'

@defer.inlineCallbacks
def on_POST(self, request, target_user_id):

    UserID.from_string(target_user_id)
    requester = (yield self.auth.get_user_by_req(request))
    is_admin = (yield self.auth.is_server_admin(requester.user))
    if (not is_admin):
        raise AuthError(403, 'You    are    not    a    server    admin')
    params = parse_json_object_from_request(request)
    new_password = params['new_password']
    if (not new_password):
        raise SynapseError(400, "Missing    'new_password'    arg")
    logger.info('new_password:    %r', new_password)
    (yield self.auth_handler.set_password(target_user_id, new_password, requester))
    defer.returnValue((200, {}))
