1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-11 17:51:02 +00:00

Merge pull request #6767 from wallabag/remove-demo

Remove (useless) demo mode
This commit is contained in:
Nicolas Lœuillet 2023-08-21 20:18:18 +02:00 committed by GitHub
commit 407dd48ed0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 29 additions and 119 deletions

View file

@ -90,14 +90,10 @@ class ConfigController extends AbstractController
$pwdForm->handleRequest($request);
if ($pwdForm->isSubmitted() && $pwdForm->isValid()) {
if ($craueConfig->get('demo_mode_enabled') && $craueConfig->get('demo_mode_username') === $user->getUsername()) {
$message = 'flashes.config.notice.password_not_updated_demo';
} else {
$message = 'flashes.config.notice.password_updated';
$message = 'flashes.config.notice.password_updated';
$user->setPlainPassword($pwdForm->get('new_password')->getData());
$this->userManager->updateUser($user, true);
}
$user->setPlainPassword($pwdForm->get('new_password')->getData());
$this->userManager->updateUser($user, true);
$this->addFlash('notice', $message);