Skip to content

Conversation

rueckstiess
Copy link
Contributor

Note: ssl cert paths are not restored when clicking on a favorite connection. See INT-780 for explanation.

HTML file picker cannot set the value programmatically for security reasons. But in electron land we can use their `showOpenDialog`.
@rueckstiess rueckstiess force-pushed the INT-780-save-ssl-cert-paths branch from 6b41605 to 176941e Compare November 11, 2015 04:45
@rueckstiess
Copy link
Contributor Author

HTML5 file pickers cannot set their values programmatically for security reasons (otherwise one could just upload any file, e.g. C:\passwords.txt.

Electron provides its own file dialogs however. The latest change removes the HTML file pickers and replaces them with custom buttons, that trigger the electron dialog. This allows us to save and restore the ssh paths the user has chosen.

Here it is in action:

connect_dialog_custom_upload_button

@imlucas
Copy link
Contributor

imlucas commented Nov 11, 2015

:shipit:

imlucas added a commit that referenced this pull request Nov 11, 2015
INT-780 save ssl cert paths, removing debug msgs
@imlucas imlucas merged commit 371933b into master Nov 11, 2015
@imlucas imlucas deleted the INT-780-save-ssl-cert-paths branch November 11, 2015 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants