1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Crypt site credential password

This commit is contained in:
Jeremy Benoist 2017-06-11 23:05:19 +02:00
parent 9de9f1e5ce
commit 906424c1b6
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
15 changed files with 169 additions and 9 deletions

View file

@ -45,6 +45,8 @@ class SiteCredentialController extends Controller
$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {
$credential->setPassword($this->get('wallabag_core.helper.crypto_proxy')->crypt($credential->getPassword()));
$em = $this->getDoctrine()->getManager();
$em->persist($credential);
$em->flush($credential);