/// <summary>
        /// Returns a user ID from a password reset token.
        /// </summary>
        /// <param name="token">The password reset token.</param>
        /// <returns>The user ID.</returns>
        /// <exception cref="System.InvalidOperationException">
        /// The <seealso cref="Initialized"/> method was not called.-or-
        /// The <seealso cref="InitializeDatabaseConnection(string)"/> method was not called.-or-
        /// The <seealso cref="MySqlSimpleMembershipProvider"/> membership provider is not registered in the configuration of your site.
        /// For more information, contact your site's system administrator.
        /// </exception>
        public static int GetUserIdFromPasswordResetToken(string token)
        {
            MySqlSimpleMembershipProvider provider = VerifyProvider();

            Debug.Assert(provider != null);             // VerifyProvider checks this

            return(provider.GetUserIdFromPasswordResetToken(token));
        }