6 require_once('mitsql.cfg.php');
7 require_once('mitsql.lib.php');
9 if (!isLoggedIn()) redirect('index');
11 $User = new User($Login->getUserID());
14 if (isset($i_chgpw)) {
15 $p1 = (isset($i_p[1])?$i_p[1]:'');
16 $p2 = (isset($i_p[2])?$i_p[2]:'');
18 $err[] = 'You may not have a blank password.';
19 } elseif ($p1 != $p2) {
20 $err[] = 'Your confirmation password does not match.';
22 $User->setPassword($p1);
23 $msg[] = 'Your password was changed.';
28 include 'tpl/setup.php';