mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-17 17:08:37 +00:00
Use internal config instead for demo
This commit is contained in:
parent
d8d56448c9
commit
a4f42c59f0
9 changed files with 25 additions and 17 deletions
|
@ -57,7 +57,7 @@ class ConfigController extends Controller
|
|||
$pwdForm->handleRequest($request);
|
||||
|
||||
if ($pwdForm->isValid()) {
|
||||
if ($this->getParameter('demo') === true && $this->getParameter('demo_username') === $user->getUsername()) {
|
||||
if ($this->get('craue_config')->get('demo_mode_enabled') && $this->get('craue_config')->get('demo_mode_username') === $user->getUsername()) {
|
||||
$this->get('session')->getFlashBag()->add(
|
||||
'notice',
|
||||
'In demonstration mode, you can\'t change password for this user.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue