diff --git a/gulpfile.js b/gulpfile.js index 93d343d8b..9e0b33b72 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -198,6 +198,15 @@ gulp.task('colorpicker', function () { .pipe(gulp.dest(config.production + '/' + config.paths.images + '/bootstrap-colorpicker')); }); +gulp.task('password-strength', function () { + gulp.src([ + config.main.bowerDirectory + '/pwstrength-bootstrap/dist/*.js', + ]) + .pipe(concat('password.min.js')) + .pipe(minifyJS()) + .pipe(gulp.dest(config.production + '/password-strength')); +}); + gulp.task('chartjs', function () { gulp.src([ config.main.bowerDirectory + '/chart.js/dist/Chart.min.js', @@ -368,6 +377,7 @@ gulp.task('bower', ['clean'], function () { gulp.task('other', ['clean'], function () { gulp.start('ckeditor'); gulp.start('colorpicker'); + gulp.start('password-strength'); gulp.start('i18n'); gulp.start('pdfjs'); diff --git a/include/top.php b/include/top.php index c66b4696e..b71caa824 100644 --- a/include/top.php +++ b/include/top.php @@ -275,7 +275,7 @@ if (Auth::check()) { -
'.tr('Utente').': '.$user['username'].'
'. - ''.tr('Gruppo').': '.$user['gruppo'].'
'; +'.tr('Utente').': '.$user['username'].'
+'.tr('Gruppo').': '.$user['gruppo'].'
'; if (!empty($anagrafica)) { echo ' -'.tr('Anagrafica associata').': '.$anagrafica['ragione_sociale'].'
'; +'.tr('Anagrafica associata').': '.$anagrafica['ragione_sociale'].'
'; } echo ' - - - '.tr('Cambia password').' - +'.tr('Inserisci la nuova password per il tuo account').':
- {[ "type": "password", "label": "'.tr('Password').'", "name": "password", "icon-before": "" ]}'; + {[ "type": "password", "label": "'.tr('Password').'", "name": "password", "required": 1, "strength": "#submit-button", "icon-before": "" ]}'; } echo '