feat: add method to delete the last character in the password field

This commit is contained in:
jdevito
2025-05-05 13:15:44 -05:00
parent 0aa095d38c
commit 93f0f4cbfe

View File

@@ -121,6 +121,16 @@ namespace PepperDash.Core.PasswordManagement
OnBoolChange(false, (ushort)PasswordToValidate.Length, PasswordManagementConstants.PasswordLedFeedbackChange); OnBoolChange(false, (ushort)PasswordToValidate.Length, PasswordManagementConstants.PasswordLedFeedbackChange);
} }
/// <summary>
/// Deletes the last character in the currently entered password field
/// </summary>
public void DeletePasswordCharacter()
{
PasswordToValidate = PasswordToValidate.Substring(0, PasswordToValidate.Length - 1);
OnBoolChange(false, (ushort)PasswordToValidate.Length, PasswordManagementConstants.PasswordLedFeedbackChange);
// Verify if OnStringChange is needed to update the S+ wrapper with the entered PasswordToValidate
}
/// <summary> /// <summary>
/// Protected boolean change event handler /// Protected boolean change event handler
/// </summary> /// </summary>