-
Notifications
You must be signed in to change notification settings - Fork 677
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
Proposal: LoginDialog Control #799
Comments
@shaggygi, thank you for the proposal and, again, more detail would be great. Would the only purpose of this control to enable users to enter their username/password while supporting MVVM, or would you want to see other scenarios covered? |
@YuliKl Thanks for the reply. My initial thought it would purely for 1) MVVM support and 2) allow user to enter username/password. One disadvantage of only this is it would have to return back to caller to perform the verification. If the username/password failed, the dialog would have to be called again to inform user of error and retry. I guess you could pass an authentication interface, but gets complicated as that would be known and if it would work for different scenarios. In the end, I could get around this and create my own ContentDialog for this. However, it is the security and support for MVVM around the PasswordBox that would be good instead of coding. |
This would be much easier to implement once #179 (native Input validation) is part of the platform. |
Thank you for your cautionary comment, @mrlacey! While a login dialog seems useful, I can definitely imagine a control like this turning into a crutch. While we definitely won't be able to act on this proposal until after WinUI 3.0 ships, I would like to keep this issue in our "freezer" to be considered in the future. |
@YuliKl I understand keeping it open ;) |
Perhaps #4374 would facilitate to deal with credential providers and free you up from dealing with passwords ? |
Proposal: Add LoginDialog Control
Similar to #792, it would be nice to have a LoginDialog control similar to MahApps LoginDiagram for user to enter user/pass.
Summary
While devs can create their own, it is a little more complex as the PasswordBox control is harder to setup for MVVM binding due to security issues.
Instead of creating custom logic/UI, it would be nice to have a native control to perform basic login UI.
The text was updated successfully, but these errors were encountered: