@@ -347,15 +347,15 @@ discard block |
||
347 | 347 | 'decline' => $this->trans->t('Decline'), |
348 | 348 | 'session.time.left' => $this->trans->t('You have {{session_time}} left before logout.'), |
349 | 349 | 'vault.locked' => $this->trans->t('Your vault has been locked for {{time}} because of {{tries}} failed attempts!'), |
350 | - 'vault.hint.hello' => $this->trans->t('Hello there!'), |
|
351 | - 'vault.hint.hello.add' => $this->trans->t('It does not seem that you have any passwords. Do you want to add one?'), |
|
352 | - 'vault.hint.list.nogood' => $this->trans->t('You don\'t have good credentials'), |
|
353 | - 'vault.hint.list.nomedium' => $this->trans->t('You don\'t have medium credentials'), |
|
354 | - 'vault.hint.list.nobad' => $this->trans->t('You don\'t have bad credentials'), |
|
355 | - 'vault.hint.list.noexpired' => $this->trans->t('You don\'t have expired credentials'), |
|
356 | - 'vault.hint.list.nodeleted' => $this->trans->t('You don\'t have deleted credentials'), |
|
357 | - 'vault.hint.list.notags' => $this->trans->t('There are no credentials with your selected tags'), |
|
358 | - 'vault.hint.list.nosearch' => $this->trans->t('There are no credentials matching'), |
|
350 | + 'vault.hint.hello' => $this->trans->t('Hello there!'), |
|
351 | + 'vault.hint.hello.add' => $this->trans->t('It does not seem that you have any passwords. Do you want to add one?'), |
|
352 | + 'vault.hint.list.nogood' => $this->trans->t('You don\'t have good credentials'), |
|
353 | + 'vault.hint.list.nomedium' => $this->trans->t('You don\'t have medium credentials'), |
|
354 | + 'vault.hint.list.nobad' => $this->trans->t('You don\'t have bad credentials'), |
|
355 | + 'vault.hint.list.noexpired' => $this->trans->t('You don\'t have expired credentials'), |
|
356 | + 'vault.hint.list.nodeleted' => $this->trans->t('You don\'t have deleted credentials'), |
|
357 | + 'vault.hint.list.notags' => $this->trans->t('There are no credentials with your selected tags'), |
|
358 | + 'vault.hint.list.nosearch' => $this->trans->t('There are no credentials matching'), |
|
359 | 359 | |
360 | 360 | |
361 | 361 | // templates/views/vaults.html |
@@ -401,15 +401,15 @@ discard block |
||
401 | 401 | 'deleted.credentials' => $this->trans->t('Deleted credentials'), |
402 | 402 | 'logout' => $this->trans->t('Logout'), |
403 | 403 | 'donate' => $this->trans->t('Donate'), |
404 | - 'navigation.show.all' => $this->trans->t('Show All'), |
|
405 | - 'navigation.tags' => $this->trans->t('Tags'), |
|
406 | - 'navigation.tags.search' => $this->trans->t('Search Tags'), |
|
407 | - 'navigation.strength.good' => $this->trans->t('Good Strength'), |
|
408 | - 'navigation.strength.medium' => $this->trans->t('Medium Strength'), |
|
409 | - 'navigation.strength.bad' => $this->trans->t('Bad Strength'), |
|
410 | - 'navigation.expired' => $this->trans->t('Expired'), |
|
411 | - 'navigation.advanced.filter' => $this->trans->t('Filter Tags'), |
|
412 | - 'navigation.advanced.checkbox' => $this->trans->t('Simple Navigation'), |
|
404 | + 'navigation.show.all' => $this->trans->t('Show All'), |
|
405 | + 'navigation.tags' => $this->trans->t('Tags'), |
|
406 | + 'navigation.tags.search' => $this->trans->t('Search Tags'), |
|
407 | + 'navigation.strength.good' => $this->trans->t('Good Strength'), |
|
408 | + 'navigation.strength.medium' => $this->trans->t('Medium Strength'), |
|
409 | + 'navigation.strength.bad' => $this->trans->t('Bad Strength'), |
|
410 | + 'navigation.expired' => $this->trans->t('Expired'), |
|
411 | + 'navigation.advanced.filter' => $this->trans->t('Filter Tags'), |
|
412 | + 'navigation.advanced.checkbox' => $this->trans->t('Simple Navigation'), |
|
413 | 413 | |
414 | 414 | |
415 | 415 | // templates/public_share.php |
@@ -107,15 +107,15 @@ discard block |
||
107 | 107 | |
108 | 108 | |
109 | 109 | //fetch the proper credentialelement, the returned element from createCredential is not usable in the frontend. |
110 | - $credentials = $this->credentialService->getCredentialsByVaultId($vault_id, $this->userId); |
|
111 | - foreach ($credentials as &$value) { |
|
112 | - if($value->getGuid() == $credential->getGuid()){ |
|
113 | - return new JSONResponse($value); |
|
114 | - } |
|
115 | - } |
|
116 | - |
|
117 | - //return old value as fallback |
|
118 | - return new JSONResponse($credentials); |
|
110 | + $credentials = $this->credentialService->getCredentialsByVaultId($vault_id, $this->userId); |
|
111 | + foreach ($credentials as &$value) { |
|
112 | + if($value->getGuid() == $credential->getGuid()){ |
|
113 | + return new JSONResponse($value); |
|
114 | + } |
|
115 | + } |
|
116 | + |
|
117 | + //return old value as fallback |
|
118 | + return new JSONResponse($credentials); |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
@@ -270,15 +270,15 @@ discard block |
||
270 | 270 | $credential = $this->credentialService->updateCredential($credential); |
271 | 271 | |
272 | 272 | |
273 | - //fetch the proper credentialelement, the returned element from createCredential is not usable in the frontend. |
|
274 | - $credentials = $this->credentialService->getCredentialsByVaultId($vault_id, $this->userId); |
|
275 | - foreach ($credentials as &$value) { |
|
276 | - if($value->getGuid() == $credential->getGuid()){ |
|
277 | - return new JSONResponse($value); |
|
278 | - } |
|
279 | - } |
|
273 | + //fetch the proper credentialelement, the returned element from createCredential is not usable in the frontend. |
|
274 | + $credentials = $this->credentialService->getCredentialsByVaultId($vault_id, $this->userId); |
|
275 | + foreach ($credentials as &$value) { |
|
276 | + if($value->getGuid() == $credential->getGuid()){ |
|
277 | + return new JSONResponse($value); |
|
278 | + } |
|
279 | + } |
|
280 | 280 | |
281 | - //return old value as fallback |
|
281 | + //return old value as fallback |
|
282 | 282 | return new JSONResponse($credential); |
283 | 283 | } |
284 | 284 |