예제 #1
0
        public string ChangePassword(int id)
        {
            var log  = new SysLogModel();
            var json = UserUtilities.ChangePassword(id);

            log.Finish(json.Length);
            return(json);
        }
        /// <summary>
        /// Fixed:
        /// </summary>
        public string ChangePassword(Context context, int id)
        {
            var log  = new SysLogModel(context: context);
            var json = UserUtilities.ChangePassword(context: context, userId: id);

            log.Finish(context: context, responseSize: json.Length);
            return(json);
        }
예제 #3
0
 public void ChangePassword_Confirm_BTN_Click()
 {
     if (UserUtilities.PasswordMatch(ProfileChange_INPT_Box.New_INPT.text, ProfileChange_INPT_Box.Confirm_INPT.text))
     {
         if (UserUtilities.PasswordViability(ProfileChange_INPT_Box.New_INPT.text))
         {
             UserUtilities.ChangePassword(ProfileChange_INPT_Box.New_INPT.text);
             ProfileChange_INPT_Box_Click();
             Profile_PNL.UpdateProfile();
         }
         else
         {
             DisplayNotification(true, "Password needs to be " + UserUtilities.minPassLength + " - " + UserUtilities.MaxInputLength + " characters long and contain 1 uppercase, 1 symbol, & 1 number");
         }
     }
     else
     {
         DisplayNotification(true, "Passwords do not match");
     }
 }