There are two %s's in the variable - the first gets the e-mail, the second gets the username.
I'd do it using a global like this:
In the template, inside <%loop errors%>, just after <%error%>, add this:
<%if error contains 'has already been used with another username'%> - <%show_existing($user_email)%><%endif%>
The "show_existing" global is going to be:
sub { my $email = shift; my $username = $DB->table('User')->select(user_username => { user_email => $email })->fetchrow; return \(qq|<a href="gforum.cgi?do=lost_password;user_username=| . $IN->escape($username) . qq|">Click here to e-mail your password</a>|); }
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
I'd do it using a global like this:
In the template, inside <%loop errors%>, just after <%error%>, add this:
<%if error contains 'has already been used with another username'%> - <%show_existing($user_email)%><%endif%>
The "show_existing" global is going to be:
sub { my $email = shift; my $username = $DB->table('User')->select(user_username => { user_email => $email })->fetchrow; return \(qq|<a href="gforum.cgi?do=lost_password;user_username=| . $IN->escape($username) . qq|">Click here to e-mail your password</a>|); }
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com