mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
demo mode (you can't update password in demo mode
This commit is contained in:
parent
da368cc84f
commit
6499b26ae8
8 changed files with 15 additions and 4 deletions
11
index.php
11
index.php
|
@ -54,14 +54,17 @@ 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');
|
||||
if (!DEMO) {
|
||||
$store->updatePassword(encode_string($_POST['password'] . $_SESSION['login']));
|
||||
$msg->add('s', 'your password has been updated');
|
||||
}
|
||||
else {
|
||||
$msg->add('i', 'in demo mode, you can\'t update password');
|
||||
}
|
||||
}
|
||||
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');
|
||||
}
|
||||
|
||||
# Traitement des paramètres et déclenchement des actions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue