Skip to content

Commit f55fa5f

Browse files
Libouklego-technix
authored andcommitted
feat(mon-pix): update user then modify Pix App User CGU boolean values
1 parent dfeabdc commit f55fa5f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mon-pix/app/controllers/terms-of-service.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export default class TermsOfServiceController extends Controller {
2121
if (this.isTermsOfServiceValidated) {
2222
this.showErrorTermsOfServiceNotSelected = false;
2323
await this.currentUser.user.save({ adapterOptions: { acceptPixTermsOfService: true } });
24+
this.currentUser.user.mustValidateTermsOfService = false;
25+
this.currentUser.user.cgu = true;
2426

2527
if (this.session.attemptedTransition) {
2628
this.session.attemptedTransition.retry();

0 commit comments

Comments
 (0)