mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-01-11 19:44:44 +00:00
feat: add method to delete the last character in the password field
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user