if (mb_strlen($password2) < 6) { $errors[] = __('Password must contain at least 6 chars'); $fields[] = 'password2'; $doit = false; } if ($password2 !== $password3) { $errors[] = __('Password confirmation is not the same'); $fields[] = 'password3'; $doit = false; } if ($doit === true) { if ($_SERVER['SERVER_NAME'] === 'demo.pimpmylog.com') { $return['ok'] = __('Password has been fakely changed on the demo!'); } else { $return['ok'] = __('Password has been successfully changed!'); Sentinel::changePassword($username, $password2); } } else { $return['errors'] = $errors; $return['fields'] = $fields; } break; /* |-------------------------------------------------------------------------- | List users |-------------------------------------------------------------------------- | */ /* |-------------------------------------------------------------------------- | List users