Menu

Making Imported Custom Fields Editable in Passman
📰

Making Imported Custom Fields Editable in Passman

DEV Community: angular·Robert Markovski·about 1 hour ago
#ggzI6TOT
#devtoangular#devto#dev#field#fields
Reading 0:00
15s threshold

A nine-year-old bug where imported data was visible but not editable.

Short answer

Custom fields imported into Passman, for example through the generic CSV importer, appeared when viewing a credential, but showed no values or types on the edit screen. The imported fields had no field_type . The fix has importers store one ( text or password , based on the secret flag), and the edit controller backfills a valid type for already-stored fields that lack one. It was merged as PR #877 and closed issue #365 .

The problem

Issue #365, opened in August 2017, described exporting passwords from Revelation, importing them with the generic CSV importer, and finding that custom fields "appear but with no values or types visible" on the edit screen.

The fix

Importers now set the type explicitly, for example:

'secret' : isSecret , 'field_type' : ( isSecret === 1 ) ?…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.