marius-wieschollek / passwords

A simple, yet feature rich password manager for Nextcloud
GNU Affero General Public License v3.0
201 stars 39 forks source link

[FEATURE]: Support for newline characters in custom fields #641

Open Petersoj opened 4 months ago

Petersoj commented 4 months ago

⚠️ This issue respects the following points: ⚠️

Current Status

This feature request is similar to #436, but with a different motivation. I ran into one example recently where I was given 2FA backup codes from a website. The backup codes consist of several alphanumeric strings and are newline delimited. Imposing character limits is understandable, but preventing newline characters seems a bit too restrictive, especially when it comes to custom fields. It's generally not too much effort to replace newlines with spaces (which is acceptable in the case of 2FA backup codes), but this would be a nice-to-have feature if it doesn't require too much work or refactoring.

Feature Description

  1. Open Passwords app.
  2. Create a new password.
  3. Add a new custom field with the "secret" or "text" type.
  4. Paste in the sensitive string data with newline characters.
  5. Sit back and relax, knowing that your custom field data persisted the newline characters.
  6. Profit.

Additional Context

No response