~netlandish/links-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH links] Adding support for expiration date to personal access tokens.

Details
Message ID
<20250911004648.15155-1-peter@netlandish.com>
Sender timestamp
1757530006
DKIM signature
missing
Download raw message
Patch: +10 -3
Changelog-added: You can now set a custom expiration date for personal
  access tokens. Maximum of 10 years.
---
 go.mod                             | 2 +-
 go.sum                             | 4 ++--
 templates/oauth2_add_personal.html | 7 +++++++
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/go.mod b/go.mod
index 7c4c304..f2fd36b 100644
--- a/go.mod
+++ b/go.mod
@@ -35,7 +35,7 @@ require (
	netlandish.com/x/gobwebs-auditlog v0.2.7
	netlandish.com/x/gobwebs-formguard v0.2.8
	netlandish.com/x/gobwebs-graphql v0.2.8
	netlandish.com/x/gobwebs-oauth2 v0.2.7
	netlandish.com/x/gobwebs-oauth2 v0.2.8
	netlandish.com/x/gobwebs-ses-feedback v0.2.8
	petersanchez.com/x/carrier v0.2.3
	petersanchez.com/x/carrier/ses v0.0.0-20250114214955-7f5d9b835a85
diff --git a/go.sum b/go.sum
index f823038..8eacf97 100644
--- a/go.sum
+++ b/go.sum
@@ -2586,8 +2586,8 @@ netlandish.com/x/gobwebs-formguard v0.2.8 h1:nfnOFdqIWPySDmV08Q+VtUv1tfVCSyMHEnN
netlandish.com/x/gobwebs-formguard v0.2.8/go.mod h1:f+oCZbI1nuYdoAGmb0nEpWKMBjl1YjuQt1v6SVqNYzM=
netlandish.com/x/gobwebs-graphql v0.2.8 h1:mEOi4h3zZxI2QwD1qj40EnkkLPtaixOC4hQ1dr/Pm9E=
netlandish.com/x/gobwebs-graphql v0.2.8/go.mod h1:TEaBNJLBNfcW/Dy0mBzR47t0p4SsZTp2gaHxzn5wo28=
netlandish.com/x/gobwebs-oauth2 v0.2.7 h1:yornq2hquinwGzeCjNDmeFGt2NlnjR985sOnABCFPk4=
netlandish.com/x/gobwebs-oauth2 v0.2.7/go.mod h1:7w3TSD2dd76d6dUSwPECB2TeStOSLmm4b9v5alZd8as=
netlandish.com/x/gobwebs-oauth2 v0.2.8 h1:lvWmgLLqHCX3oP5I9IZPIzljx2CnzmZcB2qEImz8OU8=
netlandish.com/x/gobwebs-oauth2 v0.2.8/go.mod h1:7w3TSD2dd76d6dUSwPECB2TeStOSLmm4b9v5alZd8as=
netlandish.com/x/gobwebs-ses-feedback v0.2.8 h1:FIvHeh2YPVl8x1c3KCT7ZdjIxUrn2jql9cLya/a1bYo=
netlandish.com/x/gobwebs-ses-feedback v0.2.8/go.mod h1:mn7yq3rcd7URIAWJ+VcNHwJsM/hKkCnAtlSyDwH1Lc0=
petersanchez.com/x/carrier v0.2.3 h1:6ScWG2HVFqeqafQp2D9kChNdXYkou4rduzppc3SDYMg=
diff --git a/templates/oauth2_add_personal.html b/templates/oauth2_add_personal.html
index d4e7963..d37e20d 100644
--- a/templates/oauth2_add_personal.html
+++ b/templates/oauth2_add_personal.html
@@ -22,6 +22,13 @@
      <p class="error">{{ . }}</p>
      {{ end }}
    </div>
    <div>
      <label for="expires_on">Expiration Date</label>
      <input type="date" name="expires_on" value="{{ .form.GetDefaultExpiresOn }}" required>
      {{ with .errors.ExpiresOn }}
      <p class="error">{{ . }}</p>
      {{ end }}
    </div>
  </form>
  <footer class="is-right">
    <button form="oauth2-add-form" class="button dark" type="submit">{{.pd.Data.save}}</button>
-- 
2.49.1
Details
Message ID
<DCPK4NF1LTTS.1APT0LVO35OG5@netlandish.com>
In-Reply-To
<20250911004648.15155-1-peter@netlandish.com> (view parent)
Sender timestamp
1757530236
DKIM signature
missing
Download raw message
Applied.

To git@git.code.netlandish.com:~netlandish/links
   521166e..f395926  master -> master
Reply to thread Export thread (mbox)