diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-07-09 20:33:51 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-07-10 13:49:25 +0100 |
commit | 2ac123a2e0e4594099a11057647ffc190219993d (patch) | |
tree | 4cfa460cb78461b6c5958f6d06dce497d11378a5 /templates | |
parent | a978c0a1ad216f7004ef88b8a58b9731242155dc (diff) |
Alter token logging in and timeout behaviour.
Restrict email_sign_in token to one day, unused confirmation tokens to
one month. Used tokens will redirect to the created thing but not log
in; don't log in with alert links (unsubscribe link never expires, reply
link will still show "reopen" tickbox).
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/update-form.html | 2 | ||||
-rw-r--r-- | templates/web/eastsussex/report/update-form.html | 2 | ||||
-rw-r--r-- | templates/web/fixmystreet/report/update-form.html | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/web/base/report/update-form.html b/templates/web/base/report/update-form.html index 50bc2906c..4e762a9a5 100644 --- a/templates/web/base/report/update-form.html +++ b/templates/web/base/report/update-form.html @@ -37,7 +37,7 @@ </select> </div> [% ELSE %] - [% IF problem.is_fixed AND c.user_exists AND c.user.id == problem.user_id %] + [% IF problem.is_fixed AND ((c.user_exists AND c.user.id == problem.user_id) OR alert_to_reporter) %] <div class="checkbox"> <input type="checkbox" name="reopen" id="form_reopen" value="1"[% ' checked' IF update.mark_open %]> <label class="inline" for="form_reopen">[% loc('This problem has not been fixed') %]</label> diff --git a/templates/web/eastsussex/report/update-form.html b/templates/web/eastsussex/report/update-form.html index e4314b81d..af966f417 100644 --- a/templates/web/eastsussex/report/update-form.html +++ b/templates/web/eastsussex/report/update-form.html @@ -82,7 +82,7 @@ [% END %] </select> [% ELSE %] - [% IF problem.is_fixed AND c.user_exists AND c.user.id == problem.user_id %] + [% IF problem.is_fixed AND ((c.user_exists AND c.user.id == problem.user_id) OR alert_to_reporter) %] <input type="checkbox" name="reopen" id="form_reopen" value="1"[% ' checked' IF update.mark_open %]> <label class="inline" for="form_reopen">[% loc('This problem has not been fixed') %]</label> diff --git a/templates/web/fixmystreet/report/update-form.html b/templates/web/fixmystreet/report/update-form.html index bde2c84e2..f5dca4669 100644 --- a/templates/web/fixmystreet/report/update-form.html +++ b/templates/web/fixmystreet/report/update-form.html @@ -34,7 +34,7 @@ [% END %] </select> [% ELSE %] - [% IF problem.is_fixed AND c.user_exists AND c.user.id == problem.user_id %] + [% IF problem.is_fixed AND ((c.user_exists AND c.user.id == problem.user_id) OR alert_to_reporter) %] <input type="checkbox" name="reopen" id="form_reopen" value="1"[% ' checked' IF update.mark_open %]> <label class="inline" for="form_reopen">[% loc('This problem has not been fixed') %]</label> |