Example #1
0
        public string RegisterUser(User user)
        {
            string             result   = "";
            SecurityRepository security = new SecurityRepository();

            try
            {
                result = security.AddUser(user);
            }
            catch (Exception ex)
            {
                CustomLogging.LogMessage(TracingLevel.ERROR, new Exception("Error registering user", ex));
                result = "Failed";
            }
            return(result);
        }
Example #2
0
        public string ResetPassword(User user)
        {
            string             result   = "";
            SecurityRepository security = new SecurityRepository();

            try
            {
                result = security.ResetPassword(user);
            }
            catch (Exception ex)
            {
                CustomLogging.LogMessage(TracingLevel.ERROR, new Exception("Error resetting password", ex));
                result = "Failed";
            }
            return(result);
        }