mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 20:16:34 +00:00
feat: add method to delete the last character in the password field
This commit is contained in:
parent
0aa095d38c
commit
93f0f4cbfe
1 changed files with 10 additions and 0 deletions
|
|
@ -121,6 +121,16 @@ namespace PepperDash.Core.PasswordManagement
|
|||
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>
|
||||
/// Protected boolean change event handler
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue