equal
deleted
inserted
replaced
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 */ |
20 */ |
21 |
21 |
22 require_once("inc/toolkit.inc.php"); |
22 require_once("inc/toolkit.inc.php"); |
23 |
23 |
24 if($_POST["submit"]) |
24 if(isset($_POST["submit"])) |
25 { |
25 { |
26 if(strlen($_POST["newpass"]) < 8) |
26 if((!isset($_POST['newpass'])) || (strlen($_POST["newpass"]) < 8)) |
27 { |
27 { |
28 error('Password length should be at least 8 characters.'); |
28 error('Password length should be at least 8 characters.'); |
29 } |
29 } |
30 else |
30 else |
31 { |
31 { |