+elseif (isset($_GET['config'])) {
+ if (isset($_POST['password']) && isset($_POST['password_repeat'])) {
+ if ($_POST['password'] == $_POST['password_repeat'] && $_POST['password'] != "") {
+ logm('password updated');
+ $store->updatePassword(encode_string($_POST['password'] . $_SESSION['login']));
+ $msg->add('s', 'your password has been updated');
+ }
+ else
+ $msg->add('e', 'your password can\'t be empty and you have to repeat it in the second field');
+ }
+ else
+ $msg->add('e', 'error in your password update');
+}