+ // Check that password is long enough
+ elseif ($postedpass != '' && strlen($postedpass) < 6) {
+ $tplVars['error'] = T_('Password must be at least 6 characters long.');
+ }
+
+ // Check if password matches confirmation
+ elseif ($postedpass != $postedconf) {
+ $tplVars['error'] = T_('Password and confirmation do not match.');
+ }
+
+ // Check if e-mail address is blocked
+ elseif ($userservice->isBlockedEmail($_POST['email'])) {
+ $tplVars['error'] = T_('This e-mail address is not permitted.');
+ }
+