Ejemplo n.º 1
0
        /// <summary>
        /// checks if key is correct
        /// </summary>
        /// <param name="key"></param>
        public void CheckKey(string key, string email)
        {
            //checks if key exist for the user and if correct for the username
            KeyModel keyModel = KeyRepository.GetKey(key, email);

            if (keyModel != null)
            {
                Key = key;
                UC.HidePanels("pResetKey");
            }
            else
            {
                MessageBox.Show("key was not correct");
            }
        }