Skip to content

Commit 3883de9

Browse files
3.0.0.8
Improved CSV import Fix user profil update Updated readme file removing beta status
1 parent 68cd420 commit 3883de9

File tree

6 files changed

+36
-12
lines changed

6 files changed

+36
-12
lines changed

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ test.html
1414
/includes/config/tp.config.php
1515
/includes/config/settings.php
1616
includes/libraries/csrfp/libs/csrfp.config.php
17-
/includes/config/tp.config.php.*
17+
/includes/config/tp.config.php.*
18+
gcommit.sh
19+
gdev.sh
20+
gpush.sh
21+
/.vscode/*
22+
/_tools/*

includes/language/english.php

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
'send_by_email' => 'Send by email',
2626
'filters' => 'Filters',
2727
'show_user_password' => 'Show user password',
28-
'by' => 'by',
2928
'open_website' => 'Open website',
3029
'mfa_for_roles' => 'MFA is requested for users in Roles',
3130
'mfa_for_roles_tip' => 'By default, once an MFA method is selected, it is enabled for all users. Nevertheless, you might select the roles for which it is expected.<br>NOT YET IMPLEMENTED',

index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@
698698
</ul>
699699
</nav>
700700
<!-- /.sidebar-menu -->
701-
<div class="menu-footer" style="">
701+
<div class="menu-footer">
702702
<div class="" id="sidebar-footer">
703703
<i class="fas fa-clock-o mr-2 infotip text-info pointer" title="<?php echo langHdl('server_time') . ' ' .
704704
@date($SETTINGS['date_format'], (string) $_SERVER['REQUEST_TIME']) . ' - ' .

pages/import.js.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ function launchCSVItemsImport() {
353353
if ($(this).attr('id') !== undefined) {
354354
var elem = $(this).attr("id").split("-");
355355
// Exclude previously imported items
356-
if ($("#importcsv-" + elem[1]).iCheck("disabled") !== true) {
356+
if ($("#importcsv-" + elem[1]).parent().closest('.icheckbox_flat-blue').hasClass('disabled') !== true) {
357357
arrItems.push({
358358
label: $(this).data('label'),
359359
login: $(this).data('login'),
@@ -412,18 +412,20 @@ function(data) {
412412
$('#import-feedback').removeClass('hidden');
413413
$('#import-feedback div').html('');
414414
} else {
415+
var counter_treated_items = 0;
415416
// after inserted, disable the checkbox in order to prevent against new insert
416417
$.each(data.items, function(i, value) {
417-
$("#importcsv-" + value).parent().closest('.form-group').remove();
418+
$("#importcsv-" + value).parent().closest('.icheckbox_flat-blue').addClass('disabled');
418419
$('#csv-items-number').html(parseInt($('#csv-items-number').text()) - 1);
420+
counter_treated_items++;
419421
});
420422

421423
// Show
422424
toastr.remove();
423425
toastr.success(
424-
'<?php echo langHdl('done'); ?>',
426+
'<?php echo langHdl('number_of_items_imported'); ?> : ' + counter_treated_items,
425427
data.message, {
426-
timeOut: 2000,
428+
timeOut: 5000,
427429
progressBar: true
428430
}
429431
);

pages/users.js.php

+18-2
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ function(data) {
776776
progressBar: true
777777
}
778778
);
779-
} else {
779+
} else if (data.post_action !== "") {
780780
// Case where we need to encrypt new keys for the user
781781
// Process is:
782782
// 1/ generate encryption key (to be shared by email)
@@ -803,7 +803,7 @@ function(data) {
803803
}
804804

805805
// If expected to create new encryption key
806-
if (store.get('teampassApplication').formUserAction === 'store_user_changes' && data.post_action === 'encrypt_keys') {
806+
if (data.post_action === 'encrypt_keys') {
807807
var data = {
808808
'user_id': formUserId,
809809
};
@@ -850,6 +850,22 @@ function(data) {
850850
callRecursiveUserDataEncryption(formUserId, 'step0', 0);
851851
}
852852
// ---
853+
} else {
854+
// Inform user
855+
toastr.remove();
856+
toastr.success(
857+
'<?php echo langHdl('done'); ?>',
858+
'', {
859+
timeOut: 2000
860+
}
861+
);
862+
863+
// Reload list of users
864+
oTable.ajax.reload();
865+
866+
// Prepare UI
867+
$('#row-list, #group-create-special-folder, #group-delete-user').removeClass('hidden');
868+
$('#row-form').addClass('hidden');
853869
}
854870

855871
// Remove action from store

readme.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# Teampass 3
22

3-
**This release is a beta version. It is recommended for new users to start from using this version. Currently update from latest 2.X is not finalized.**
3+
**Teampass 3.x is a totally different version compared to Teampass 2.x. As a consequence :**
4+
- For new users, you should start using this version to take benefit of the new UI (several features compared to Teampass 2.x are not yet implemented)
5+
- For "older users" that currently are relying on Teampass 2.x, you should remain on the 2.x branch as currently no update process has been finalized.
46

57
**Only English language is available. Don't change the language!**
68

79
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nilsteampassnet/TeamPass/badges/quality-score.png?b=teampass_3.0)](https://scrutinizer-ci.com/g/nilsteampassnet/TeamPass/?branch=teampass_3.0)
810

911
Teampass is a Collaborative Passwords Manager
1012

11-
> Copyright © 2009-2020, [Nils Laumaillé]([email protected])
13+
> Copyright © 2009-2021, [Nils Laumaillé]([email protected])
1214
1315
<!-- MDTOC maxdepth:2 firsth1:0 numbering:0 flatten:0 bullets:1 updateOnSave:1 -->
1416

@@ -28,7 +30,7 @@ Teampass is a Collaborative Passwords Manager
2830
## Requirements
2931

3032
* MySQL 5.1 or higher,
31-
* PHP 7.2 or higher,
33+
* PHP 7.4 or higher,
3234
* PHP extensions:
3335
* mcrypt
3436
* openssl

0 commit comments

Comments
 (0)