fix-pin-reset-bug #26

Merged
carlos merged 14 commits from fix-pin-reset-bug into master 2025-02-21 10:31:45 +01:00
Showing only changes of commit e8e6f0e371 - Show all commits

View File

@ -384,6 +384,12 @@ func (h *MenuHandlers) SaveOthersTemporaryPin(ctx context.Context, sym string, i
}
temporaryPin := string(input)
// Validate that the input is a 4-digit number.
if !pin.IsValidPIN(temporaryPin) {
return res, nil
}
// Retrieve the blocked number associated with this session
blockedNumber, err := store.ReadEntry(ctx, sessionId, storedb.DATA_BLOCKED_NUMBER)
if err != nil {