aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-06-14 15:02:34 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-20 16:03:39 +0200
commitbead8b42da4f17238dc0d5e0f90184b224ec5df7 (patch)
tree67af15e3f45dc496e492767095e5f4b477e56848 /src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php
parent906424c1b6fd884bf2081bfe6dd0b1f9651c2801 (diff)
downloadwallabag-bead8b42da4f17238dc0d5e0f90184b224ec5df7.tar.gz
wallabag-bead8b42da4f17238dc0d5e0f90184b224ec5df7.tar.zst
wallabag-bead8b42da4f17238dc0d5e0f90184b224ec5df7.zip
Fix reviews
Encrypt username too Redirect to list after saving credentials Fix typos Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php b/src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php
index 6f904f0a..36906761 100644
--- a/src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php
@@ -38,7 +38,8 @@ class SiteCredentialRepository extends \Doctrine\ORM\EntityRepository
38 return; 38 return;
39 } 39 }
40 40
41 // decrypt password before returning it 41 // decrypt user & password before returning them
42 $res['username'] = $this->cryptoProxy->decrypt($res['username']);
42 $res['password'] = $this->cryptoProxy->decrypt($res['password']); 43 $res['password'] = $this->cryptoProxy->decrypt($res['password']);
43 44
44 return $res; 45 return $res;