X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=e0f921df77625ec0f9e9a0cc81b765fdcd876afb;hb=fd85a0df209242d83d453d9847aebfe4513100f4;hp=2b06c931ae56230e962a2a80df72ae5b086d4ec2;hpb=62f12c1f4fdbac52a49c5e50515282d02f38106e;p=gruntmaster-page.git diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 2b06c93..e0f921d 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -163,7 +163,8 @@ sub dispatch_request{ sub (/ed/:contest) { forbid contest->is_running; - response ed => 'Editorial of ' . contest->name, db->problem_list(contest => $_{contest}, solution => 1); + my $pblist = db->problem_list(contest => $_{contest}, solution => 1); + response ed => 'Editorial of ' . contest->name, {%$pblist, editorial => contest->editorial}; }, sub (/login) { @@ -278,6 +279,8 @@ website using the following information: Username: $_{username} Password: Reset token: $token + +The token is valid for 24 hours. EOF my $email = Email::Simple->create( header => [