Hi Richard
Firstly with the GET request when you click on this
your route handler will be something like this (note ':' instead of '$'):
get '/reset/:token' => sub {
return template 'pass_reset' => {
token => params->{token}
};
};
<form action="/reset/[% token %]" method="post">
<input type="password" name="password1"><br/>
<input type="password" name="password2"><br/>
<input type="submit" value="Submit">
</form>
and back in the controller on clicking submit, it will be handled by
post '/reset/:token' => sub {
# do something to check params->{password1} eq params->{password2} ...
};
(Please imagine the code above is scribbled on a blackboard - I haven't run it:)
Andrew