Ejemplo n.º 1
0
            if (\Fr\LS::login(\Fr\LS::getUser("username"), "", false, false) == false) {
                echo "<h2>Current Password Wrong!</h2><p>The password you entered for your account is wrong.</p>";
            } else {
                $change_password = \Fr\LS::changePassword($new_password);
                if ($change_password === true) {
                    echo "<h2>Password Changed Successfully</h2>";
                }
            }
        }
    } else {
        echo "<p><h2>Password Fields was blank</h2><p>Form fields were left blank</p></p>";
    }
}
?>
    <form action="<?php 
echo \Fr\LS::curPageURL();
?>
" method='POST'>
      <label>
        <p>Current Password</p>
        <input type='password' name='current_password' />
      </label>
      <label>
        <p>New Password</p>
        <input type='password' name='new_password' />
      </label>
      <label>
        <p>Retype New Password</p>
        <input type='password' name='retype_password' />
      </label>
      <button style="display: block;margin-top: 10px;" name='change_password' type='submit'>Change Password</button>