From d94e2a652c0e27355ac6c6e8a309b4d10ab4400d Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 21 Dec 2010 02:04:56 +0000 Subject: do not proceed with registration if ldap gives errors, patch from Maarten Vanraes --- lib/CatDap/Controller/register.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/CatDap/Controller') diff --git a/lib/CatDap/Controller/register.pm b/lib/CatDap/Controller/register.pm index 360d7b2..a488181 100644 --- a/lib/CatDap/Controller/register.pm +++ b/lib/CatDap/Controller/register.pm @@ -122,7 +122,8 @@ sub check : Local { push @errors,$mesg->error; $c->log->info( sprintf("Creating DN $dn failed: %s", $mesg->error) ); $c->stash(errors => \@errors); - #$c->stash(template => 'register/index.tt'); + $c->stash(template => 'register/index.tt'); + return ; } $c->stash( -- cgit v1.2.1