Project

General

Profile

« Previous | Next » 

Revision 8216

Added by Jing Tao over 11 years ago

Use the specific template for the verification.

View differences:

src/perl/ldapweb.cgi
1235 1235
        debug("the count is " . $max);
1236 1236
        if($max < 1) {
1237 1237
            $ldap->unbind;   # take down session
1238
            fullTemplate( ['registerFailed'], {errorMessage => "No record matched the dn " . $dn . " for the verification. You probably already verified the account."});
1238
            fullTemplate( ['verificationFailed'], {errorMessage => "No record matched the dn " . $dn . " for the activation. You probably already activated the account."});
1239 1239
            #handleLDAPBindFailure($ldapurl);
1240 1240
            exit(0);
1241 1241
        } else {
......
1260 1260
                            newsuperior  =>  $orgDn);
1261 1261
                $ldap->unbind;   # take down session
1262 1262
                if($mesg->code()) {
1263
                    fullTemplate( ['registerFailed'], {errorMessage => "Cannot move the account from the inactive area to the ative area since " . $mesg->error()});
1263
                    fullTemplate( ['verificationFailed'], {errorMessage => "Cannot move the account from the inactive area to the ative area since " . $mesg->error()});
1264 1264
                    exit(0);
1265 1265
                } else {
1266
                    fullTemplate( ['success'] );
1266
                    fullTemplate( ['verificationSuccess'] );
1267 1267
                }
1268 1268
                #createAccount2($dn, $ldapUsername, $ldapPassword, $additions, $tmp, $allParams);
1269 1269
            } else {
1270 1270
                $ldap->unbind;   # take down session
1271
                fullTemplate( ['registerFailed'], {errorMessage => "The hash string " . $hash . " from your link doesn't match our record."});
1271
                fullTemplate( ['verificationFailed'], {errorMessage => "The hash string " . $hash . " from your link doesn't match our record."});
1272 1272
                exit(0);
1273 1273
            }
1274 1274
            

Also available in: Unified diff