Skip to content

Commit a9bf86e

Browse files
mauretto78riccio82Osticopiedicianni
authored
Login required (#3214)
* Fix: confrim registration modal * fixing API endpoints * fix user avatar image * languages validation * removed duplicated team_id * validation id_team * Refactory - Improved session management for required login - Improved code navigation through controller method defined on router.php - Reformat code * Moved Authentication classes to the \API\Commons namespace * Save project metadata * fix values * Manage Xliff rules * WIP javascript login * Fixed js handling of disconnect * Fix: user avatar image * Fixed session refresh on team changes * Fixes * Home page text * Fixed: Security account takeover - Oauth registerd users can not create account with email and password * added unit tests to xliff config * Added Xliff 2.0 and some fixes * Fixed: id null value as default * Fix css * Updated aligner * Removed todo comment * Allow acces to the user if he remember the password after a forgot password request. * CSS fix: Job menu, Issues panel * Login required: set new password * Login required: fix reset password * Fixed exception on dao return object * Minor change * Change layout xliff accordion * Jest on cd * Removed jest from web build * Fix tests * Updated submodule * Updated submodule * Updated submodule * Updated submodule * Updated submodule * Fixed submodule test node * Updated submodule * Updated submodule * Fix: css dashboard icons * Fix: search bar css * Fixed password check * Fix: forgot password modal * New tab Editor settings * Improved authentication maagement * Fix * Removed useless params * usermeta endpoint fix * Fixed default template * Css: fix dashboard css * Css: fix upload page * Css fix: dashboard * Login required shared session * Fixed some imports * Little refactory * Fixed htaccess and error pages * Fixes * Mandatory user metadata * New SSE listener * Listener works but crash on the logout call * Modify project template structure * Sse handler substitution WIP * New SSE parsing all messages * fix * Fix sse route * Fix sse url * Fix force logout * Improved SSE connection handler * useSee improve retrying interval * Force logout * Remove sse.js * Add event listener in all pages * Remove unused css * Updated CSP * User menu button width 100% * Show notifications for not logged users * Home: update copy * Fix quality report test * Update home footer * Fix check global messages * Update home footer * Update home footer * Xliff to target react page * Xliff to target page * Fix * Fix EmailsBadge test * fix segmentation_rule prop * subject * Moved segmentation rules to File import ab * fix JSON validation * Update css * Fix * Login: update label * Fix: double logout delete session and next login fails because XSRF_TOKEN is null * Fixed session storage race condition on logout * Code comments to explain some choices * New Activity log endpoint * revert wrong code * fixed query * Activity log refactoring * Login required: update css * Login required: update user menu css * Fixed: Empty user when broadcasting logout after password reset * Fixed ActivityLogController * Updated submodule for CSP * Account selection prompt * Activity log refactoring * Fix merge * Oauth URLs * Login required: update logout flow * Implementation tab Other * Analyze: fix loading page * Updated submodule * Unified interface Oauth Access token * Fix * Editor settings tab in progress * Implemented Upgrade message in nodejs * Build_number globally defined * Modified yarn watch & dev commands to update server.version * Fixed git stash annotations * Removed package.json pollution * Handling a topic message to force the disconnection of all NodeJs clients * Saving usermeta fix * UI improvements and fix * fix set usermeta response * default project template valus * Removed dqf remains from sources * Editor tab added other options * cross language matches fix * comments * code refactoring * forceLogout useCallback * SSE message: version update and force reload * Revert server.js formatting but take improvements * Select cross language matches with code * Some fixes * Fix some test * fix default template * Modify some labels * Modified default props * id_team validation * Improved logging console * Removed extract_arrays key from yaml requests * Select component with optional portal dropdown * Fix * Fix xliff analysis column and other improvements * Segment. rules font size * Sync filter and xliff template with conversion file * Updated phpdoc * Convert file filters template id - create project xliff template id * Renamed and secured upload cookie * Fixed team check on Project template * Soft delete for all sub templates * Convert file changes - Handle extraction parameter id - Handle the cache based on the extraction parameters * Changed default on ms_powerpoint DTO * Benefit: Update image * New copy * Other tab description * Fixed test * Fixed comments backend * Comments: restore delete butto * Fix check ai assistant * Fix: open segment at render * Fix: open segment search * Fix: reset password label * In the middle of nowhere * Reload page after social window close * Steps toward full php7 * Improved code * Refine code * Refine * Improved signin page redirection * Benefits: update copy * Implemented anonymous comments (Migration Needed) * Removed duplicated call to recount update-pass-fail procedure * Imroved split avoiding daemons work during transaction * Updated submodule * Segment comments: anonymous user - wip * Segment comments: anonymous user - wip * Segment comments: anonymous user - wip * Segment comments: anonymous user - wip * Comment fix: - delete not working https://app.asana.com/0/1134617950425092/1208591322128901 - thread_id as null https://app.asana.com/0/1134617950425092/1208591322128901 - is_anonymous not persisted https://app.asana.com/0/1134617950425092/1208550075786134 * Fix: https://app.asana.com/0/1134617950425092/1207612366831697 * Fix comments - gdrive params segmentation rule and filters * Improved GDrive file handling - Refactory to Languages library and others - Php Typing * Minor change * Languages handler refactory * Fixed singleton * Updated composer dependencies * Updated composer and dependencies * Updated dependencies * Payable rates support language code withoud region * Fixed GoogleDrive import and change params --------- Co-authored-by: riccio82 <[email protected]> Co-authored-by: domenico <[email protected]> Co-authored-by: pierluigi.dicianni <[email protected]> Co-authored-by: piedicianni <[email protected]> Co-authored-by: Domenico Lupinetti <[email protected]>
1 parent 8d61f59 commit a9bf86e

File tree

880 files changed

+56719
-45033
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

880 files changed

+56719
-45033
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ _dic_cache
1111
.num_processes
1212
inc/*.dat
1313
inc/oauth_config.ini
14+
/inc/oauth_config.*.ini
15+
1416
inc/Error_Mail_List.ini
1517
inc/config.ini
1618
inc/config.ini*
1719
inc/config.test.ini
1820
inc/config.development.ini
21+
1922
inc/.globalmessage.ini
2023
inc/oauth-token-key.txt
2124
.passwd.ini
@@ -73,3 +76,4 @@ certs
7376
/public/buildResources/
7477
/lib/View/*.html
7578
/lib/View/APIDoc.php
79+
/.phpunit.result.cache

.htaccess

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ RewriteCond %{QUERY_STRING} submit=Search
2121
RewriteRule ^$ /support [QSA,L]
2222

2323
RewriteRule ^$ index.php?action=newProject [QSA,L]
24+
RewriteRule ^fileupload/$ lib/View/fileupload/index.php [QSA,L]
25+
26+
RewriteRule ^signin[/]?$ index.php?action=signin [QSA,L]
2427

2528
RewriteRule ^action/convertFile[/]?$ index.php?action=convertFile [QSA,L]
2629

@@ -35,8 +38,6 @@ RewriteRule ^(jobanalysis)/([^/]*)-([^/]*)-([^/]*)/?$ index.php?action=analyze&p
3538

3639
RewriteRule ^(login)[/]?$ index.php?action=loginPage [L,QSA]
3740

38-
RewriteRule ^(oauth)/(response)[/]?$ index.php?action=oauthResponseHandler [L,QSA]
39-
4041
RewriteRule ^(manage)[/]?$ index.php?action=manage [QSA,L]
4142

4243
RewriteRule ^(revise-summary)/([^/]*)-([^/]*)/?$ index.php?action=reviseSummary&jid=$2&password=$3 [L]

INSTALL/matecat.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ CREATE TABLE `comments`
199199
`uid` bigint(20) DEFAULT NULL,
200200
`resolve_date` datetime DEFAULT NULL,
201201
`source_page` tinyint(4) DEFAULT NULL,
202-
`is_owner` tinyint(4) NOT NULL,
202+
`is_anonymous` tinyint(4) NOT NULL DEFAULT 0,
203203
`message_type` tinyint(4) DEFAULT NULL,
204204
`message` text,
205205
PRIMARY KEY (`id`),

composer.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
11
{
22
"require-dev": {
33
"phpunit/phpunit": "^9",
4-
"robmorgan/phinx": "^0.4.6"
4+
"robmorgan/phinx": "^0"
55
},
66
"require": {
77
"php": ">=7.4",
88
"phptal/phptal": "^1.3.0",
9-
"google/apiclient": "^2.4.1",
10-
"google/apiclient-services": "^0.128",
9+
"google/apiclient": "^2",
1110
"klein/klein": "^2.1",
1211
"stomp-php/stomp-php": "^5.0",
1312
"predis/predis": "^v2.0",
1413
"matecat/simple-s3": "^1.5",
1514
"matecat/whole-text-finder": "^1.0",
1615
"matecat/xliff-parser": "^2.2",
1716
"matecat/subfiltering": "^2.2",
18-
"monolog/monolog": "1.17.*",
17+
"monolog/monolog": "^2",
1918
"phpmailer/phpmailer": "~6.1",
2019
"phpoffice/phpspreadsheet": "~1.29",
21-
"symfony/console": "^2.8",
22-
"symfony/filesystem": "^2.8.9",
23-
"defuse/php-encryption": "2.0.*",
20+
"defuse/php-encryption": "^2.4",
2421
"behat/transliterator": "^1.3",
2522
"swaggest/json-schema": "^0.12.42",
23+
"symfony/console": "^5",
24+
"orhanerday/open-ai": "^4.7",
25+
"league/oauth2-linkedin": "^5.1",
26+
"stevenmaguire/oauth2-microsoft": "^2.2",
27+
"league/oauth2-github": "^3.1",
28+
"league/oauth2-facebook": "^2.2",
2629
"psr/log": "~1.0",
2730
"ext-curl": "*",
2831
"ext-pcntl": "*",
@@ -37,7 +40,7 @@
3740
"ext-mbstring": "*",
3841
"ext-zlib": "*",
3942
"ext-gd": "*",
40-
"orhanerday/open-ai": "^4.7",
43+
"ext-iconv": "*",
4144
"ext-openssl": "*"
4245
}
43-
}
46+
}

0 commit comments

Comments
 (0)