Previously this was the 'resend secret' branch. Since we cannot do it (we don't have access to the decryption key once sent to user), we just added an extend expiry button.
A 'Send Another' option is also added. This copies all the secret's details except the secret itself and redirects to the new form.
Tasks
[x] Add resend button in dashboard
[x] Add state for viewed and expired in dashboard
[x] Handle resending in Controller
The following tasks were added because we cannot do the resend function:
[x] Add an 'Extend button' - extends the expiry for 1 week
Description
Adds ability to extend expiry of secret https://www.pivotaltracker.com/story/show/166972127
Previously this was the 'resend secret' branch. Since we cannot do it (we don't have access to the decryption key once sent to user), we just added an extend expiry button.
A 'Send Another' option is also added. This copies all the secret's details except the secret itself and redirects to the new form.
Tasks
Add resend button in dashboardHandle resending in ControllerThe following tasks were added because we cannot do the resend function:
Time.now
references (UsesTime.current
instead)