From f3d4605395c32a147edad43faf45da67356aab6f Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Fri, 5 Sep 2014 17:02:34 +0100 Subject: [PATCH] Force students to give a name --- Kinza/lib/Kinza.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kinza/lib/Kinza.pm b/Kinza/lib/Kinza.pm index 6d04246..e0fa1f8 100644 --- a/Kinza/lib/Kinza.pm +++ b/Kinza/lib/Kinza.pm @@ -170,7 +170,7 @@ post '/register' => sub { if ($now le $live) { return template 'comingsoon'; } - unless (param('email') + unless (param('name') and param('email') and param('password') and param('password2')) { session 'error' => 'You must fill in all values'; return redirect '/register';