mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
Set invitations expiration to 7 days
This commit is contained in:
parent
ec884787f1
commit
0416988913
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@
|
||||||
(defn- create-team-invitation
|
(defn- create-team-invitation
|
||||||
[{:keys [conn tokens team profile role email] :as cfg}]
|
[{:keys [conn tokens team profile role email] :as cfg}]
|
||||||
(let [member (profile/retrieve-profile-data-by-email conn email)
|
(let [member (profile/retrieve-profile-data-by-email conn email)
|
||||||
token-exp (dt/in-future "48h")
|
token-exp (dt/in-future "168h") ;; 7 days
|
||||||
itoken (tokens :generate
|
itoken (tokens :generate
|
||||||
{:iss :team-invitation
|
{:iss :team-invitation
|
||||||
:exp token-exp
|
:exp token-exp
|
||||||
|
|
Loading…
Add table
Reference in a new issue