From 585cdbaff8bfc298e06d03acc7ef1ce6245ddc37 Mon Sep 17 00:00:00 2001 From: brantje Date: Wed, 28 Dec 2016 16:03:08 +0100 Subject: Require a minimum password strength for vaults --- controller/translationcontroller.php | 1 + js/templates.js | 2 +- templates/views/vaults.html | 18 +++++++++--------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/controller/translationcontroller.php b/controller/translationcontroller.php index 30138949..1bf3e06c 100644 --- a/controller/translationcontroller.php +++ b/controller/translationcontroller.php @@ -313,6 +313,7 @@ class TranslationController extends ApiController { 'last.access' => $this->trans->t('Last accessed'), 'never' => $this->trans->t('Never'), 'no.vaults' => $this->trans->t('No vaults found, why not create one?'), + 'min.vault.key.strength' => $this->trans->t('Password strength must be atleast: {{strength}}'), 'new.vault.name' => $this->trans->t('Please give your new vault a name.'), 'new.vault.pass' => $this->trans->t('Vault password'), diff --git a/js/templates.js b/js/templates.js index 7d531fa5..8ee4c99c 100644 --- a/js/templates.js +++ b/js/templates.js @@ -119,5 +119,5 @@ angular.module('views/show_vault.html', []).run(['$templateCache', function($tem angular.module('views/vaults.html', []).run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('views/vaults.html', - '
  • + Create a new vault
  • {{vault.name}}
    {{ \'created\' | translate}}: {{vault.created * 1000 | date:\'dd-MM-yyyy @ HH:mm:ss\'}} | {{ \'last.access\' | translate}}: {{vault.last_access * 1000 | date:\'dd-MM-yyyy @ HH:mm:ss\'}} {{\'never\' | translate}}
  • {{ \'no.vaults\' | translate}}
  • {{ \'go.back.vaults\' | translate }}
'); + '
  • + Create a new vault
  • {{vault.name}}
    {{ \'created\' | translate}}: {{vault.created * 1000 | date:\'dd-MM-yyyy @ HH:mm:ss\'}} | {{ \'last.access\' | translate}}: {{vault.last_access * 1000 | date:\'dd-MM-yyyy @ HH:mm:ss\'}} {{\'never\' | translate}}
  • {{ \'no.vaults\' | translate}}
  • {{ \'go.back.vaults\' | translate }}
'); }]); diff --git a/templates/views/vaults.html b/templates/views/vaults.html index 96f9bc39..d50aafdb 100644 --- a/templates/views/vaults.html +++ b/templates/views/vaults.html @@ -29,7 +29,7 @@
-