@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow to prefill name and description fields of a new Passphrase

Summary:
Allow to prefill name and description fields of a new Passphrase

Closes T15142

Test Plan:
I've visited this URL in my local test installation:

/passphrase/edit/?type=password&username=user&name=super&description=mario

And I was able to see the Name and Description fields prefilled,
just like the username.

I also tried to put the query string on an already-existing element
and it was working as expected, so, without any prefilled value from
the query string.

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: avivey, speck, tobiaswiese, Matthew, Cigaryno

Maniphest Tasks: T15142

Differential Revision: https://we.phorge.it/D25065

+6
+6
src/applications/passphrase/controller/PassphraseCredentialEditController.php
··· 45 45 // Prefill username if provided. 46 46 $credential->setUsername((string)$request->getStr('username')); 47 47 48 + // Prefill name if provided. 49 + $credential->setName((string)$request->getStr('name')); 50 + 51 + // Prefill description if provided. 52 + $credential->setDescription((string)$request->getStr('description')); 53 + 48 54 if (!$request->getStr('isInitialized')) { 49 55 $type->didInitializeNewCredential($viewer, $credential); 50 56 }