mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-06 17:41:01 +00:00
parent
85065b509f
commit
cbcfa69c05
51 changed files with 29 additions and 119 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue