Skip to content

Commit 733220c

Browse files
committed
Fix for issue #436
1 parent d2caae1 commit 733220c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/inputhandlers/login_prompt_handler.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,11 @@ func CreatePromptHandler(steps []*PromptStep, onComplete CompletionFunc) connect
301301

302302
state.Results[currentStep.ID] = validatedValue
303303

304-
mudlog.Debug("Prompt Step Success", "step", currentStep.ID, "value", validatedValue, "connectionId", clientInput.ConnectionId)
304+
if currentStep.MaskInput {
305+
mudlog.Debug("Prompt Step Success", "step", currentStep.ID, "value", "***REDACTED***", "connectionId", clientInput.ConnectionId)
306+
} else {
307+
mudlog.Debug("Prompt Step Success", "step", currentStep.ID, "value", validatedValue, "connectionId", clientInput.ConnectionId)
308+
}
305309

306310
// Advance to Next Step or Complete
307311
if advanceAndSendPrompt(state, clientInput) {

0 commit comments

Comments
 (0)