]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | require_once('mitsql.cfg.php'); | |
4 | require_once('mitsql.lib.php'); | |
5 | ||
6 | if (!isLoggedIn()) redirect('index'); | |
7 | ||
8 | $User = new User($Login->getUserID()); | |
9 | ||
10 | if (isPost()) { | |
11 | if (isset($i_chgpw)) { | |
12 | $p1 = (isset($i_p[1])?$i_p[1]:''); | |
13 | $p2 = (isset($i_p[2])?$i_p[2]:''); | |
14 | if (empty($p1)) { | |
15 | $err[] = 'You may not have a blank password.'; | |
16 | } elseif ($p1 != $p2) { | |
17 | $err[] = 'Your confirmation password does not match.'; | |
18 | } else { | |
19 | $User->setPassword($p1); | |
20 | $msg[] = 'Your password was changed.'; | |
21 | } | |
22 | } | |
23 | } | |
24 | ||
25 | include 'tpl/setup.php'; | |
26 | ||
27 | ?> |