fixed expiration time
authorheiko
Thu, 07 Jul 2011 10:40:14 +0200
changeset 22 1268c59f16d9
parent 21 12e7ee4c5302
child 24 f7d4c7db1baf
fixed expiration time
index.cgi
templates/html.invitation.done.tpl
--- a/index.cgi	Thu Jul 07 10:34:22 2011 +0200
+++ b/index.cgi	Thu Jul 07 10:40:14 2011 +0200
@@ -308,7 +308,9 @@
 
 		$sent = param("email");
 	    }
-	    print redirect("$SELF/done/invitation?email=" . _encrypt($sent));
+	    print redirect("$SELF/done/invitation"
+			. "?email=" . _encrypt($sent)
+			. ";expires=" . _encrypt($EXPIRATION));
 	    exit 0;
 	}
 	
--- a/templates/html.invitation.done.tpl	Thu Jul 07 10:34:22 2011 +0200
+++ b/templates/html.invitation.done.tpl	Thu Jul 07 10:40:14 2011 +0200
@@ -6,7 +6,7 @@
     Eine Mail mit einem Anmeldelink wurde an Deine
     Mailadresse <u>[%done.email%]</u> geschickt. Absender der Mail ist <a
     href="mailto:[%CONTACT.mail%]">[%CONTACT.name%]</a> und die Betreffzeile beginnt mit
-    <u>[%SUBJECT%]</u> Der Link ist für die nächsten [%expires%] Minuten
+    <u>[%SUBJECT%]</u> Der Link ist für die nächsten [%done.expires%] Minuten
     gültig. Deine Adresse wurde von uns nicht gespeichert.