// -------------------------------------------------------------------------------
        // RequestSoftDeleteUser
        // -------------------------------------------------------------------------------
        public override bool RequestSoftDeleteUser(NetworkConnection conn, string name, string password, int action = 1)
        {
            if (!base.RequestSoftDeleteUser(conn, name, password))
            {
                return(false);
            }

            UserDeleteRequestMessage message = new UserDeleteRequestMessage
            {
                username = name,
                password = GenerateHash(name, password)
            };

            conn.Send(message);

            return(true);
        }
        // -------------------------------------------------------------------------------
        // OnUserDeleteRequestMessage
        // @Client -> @Server
        // -------------------------------------------------------------------------------
        void OnUserDeleteRequestMessage(NetworkConnection conn, UserDeleteRequestMessage msg)
        {
            ServerResponseMessage message = new ServerResponseMessage
            {
                code             = successCode,
                text             = "",
                causesDisconnect = true
            };

            if (DatabaseManager.singleton.TryUserDelete(msg.username, msg.password))
            {
                message.text = systemText.userDeleteSuccess;
                eventListener.onUserDelete.Invoke(msg.username);
            }
            else
            {
                message.text = systemText.userDeleteFailure;
                message.code = errorCode;
            }

            conn.Send(message);
        }