-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use PasswordString object #3162
Conversation
@@ -1,8 +1,13 @@ | |||
// Copyright (c) .NET Foundation and contributors. All rights reserved. | |||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | |||
|
|||
using Microsoft.DotNet.Interactive.Formatting; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not needed
|
||
namespace Microsoft.DotNet.Interactive; | ||
|
||
internal class PasswordStringFormatterSource : ITypeFormatterSource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems more complex than needed. A custom ToString
should work fine.
|
||
namespace Microsoft.DotNet.Interactive; | ||
|
||
internal class PasswordStringFormatterSource : ITypeFormatterSource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
e1ffac3
to
b5ddd57
Compare
align api for poweshell update test for new formatting simplify pr
b5ddd57
to
6b79f22
Compare
9324645
to
f16e6d1
Compare
using PasswordString object in GetPAsswordGesture to prevent printing password values in clear