-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add a "Remember ..." checkbox to the LoginDialog #2305
Comments
i agree this should be added
|
Agree 👍 But then we have to store some information into the application settings. Each logon dialog must have an ID that identifies the dialogue, whether it should be opened or not---depending on the selection. |
@xxMUROxx When we need to access anything that requires authentication we typically have some abstractions like "Authenticator" and "CredentialsStore". Authenticator can either ask CredentialsStore for saved credentials or start the authentication process from the very beginning which involves collecting a username/password using the LoginDialog. When I'm trying to imagine interactions between this Authenticator/CredentialsStore pair I cannot see "credentials identifier" as a part of LoginDialog, it would be more practical to have it as a part of Authenticator implementation since he is the guy who talks with CredentialsStore. |
@xxMUROxx why should the settings be stored by MahApps.Metro? Username and password aren't stored either. It's up to the application (or business logic respectively) to both provide the login dialog with a |
It would be nice to have a checkbox on
LoginDialog
. From my experience there are a lot of cases when users want to save their username or both username and password.The checkbox text and visibility should be configurable in the same way as for example
AffirmativeButton
andNegativeButton
. And theLoginDialogData
will be extended with a new flag property indicating whether checkbox is checked or not.I'm definitely going to implement this feature in my fork so if you are interested I'll send a pull request once it is ready.
The text was updated successfully, but these errors were encountered: