From fa73c5669fb6c7a4353427bd79159894e516a875 Mon Sep 17 00:00:00 2001
From: Eric Rasmussen <erasmussen2@unl.edu>
Date: Wed, 27 Jan 2010 22:56:37 +0000
Subject: [PATCH] work on getemail page that appears during first time CAS sign
 in.  changes include: moving files arround into the correct elgg structure,
 adding tokens to the action calls

---
 plugins/unl_theme/views/default/account/forms/register.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/plugins/unl_theme/views/default/account/forms/register.php b/plugins/unl_theme/views/default/account/forms/register.php
index ea5e2d3f..172c3974 100644
--- a/plugins/unl_theme/views/default/account/forms/register.php
+++ b/plugins/unl_theme/views/default/account/forms/register.php
@@ -61,7 +61,9 @@
 							$form_body = "<p>";
 							$form_body .= elgg_view('input/submit', array('value' => elgg_echo('UNL Login'))) . "</p>";
 							$form_body .= "<p><a href=\"https://login.unl.edu/faq/account-resetpw.shtml\">" . elgg_echo('Forgot your my.UNL password?') . "</a></p>";
-							echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."?loginwith=UNLlogin"));
+							$ts = time();
+							$token = generate_action_token($ts);
+							echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."action/login?usecas=yes&__elgg_ts=$ts&__elgg_token=$token"));
 						?>
 		</div>
 	</div>
-- 
GitLab