change_password.php
changeset 79 0c0aa144356a
parent 71 e1b918eaf69a
child 82 c255196bc447
equal deleted inserted replaced
78:effde559e0e9 79:0c0aa144356a
    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 	{