Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Add optional password to the download url #582

Merged
merged 1 commit into from
Oct 10, 2017
Merged

Add optional password to the download url #582

merged 1 commit into from
Oct 10, 2017

Conversation

dannycoates
Copy link
Contributor

This adds an optional password to the download url of the shared file. Also, file metadata is now encrypted, so the server will no longer know the filename or type of all new files, not just password protected ones.

After a password is set the server requires verification of the password before returning both the encrypted file metadata and encrypted file.

Known issues:

  • Does not work on Safari < 11, yet
  • A few remaining css style issues
  • With multiple browsers attempting to download a password protected file its possible for the valid password to be rejected if the server's nonce has changed. Re-entering the password with the new nonce will work as expected. I don't expect this to be common in real life.

Closes #381
Closes #69

unlockInputLabel = Enter Password
unlockInputPlaceholder = Password
unlockButtonLabel = Unlock
downloadFileTitle = Download Encypted File
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo (encrypted)

@@ -80,3 +84,6 @@ footerLinkAbout = About Test Pilot
footerLinkPrivacy = Privacy
footerLinkTerms = Terms
footerLinkCookies = Cookies
requirePassword = Require a password to download this file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use a string ID that describes better the role of this string, or add a localization comment to explain the context?

@@ -80,3 +84,6 @@ footerLinkAbout = About Test Pilot
footerLinkPrivacy = Privacy
footerLinkTerms = Terms
footerLinkCookies = Cookies
requirePassword = Require a password to download this file
addPassword = Add Password
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, can you add some context? I assume it's a button, or a link.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants