[UXP-10] dynamic recaptcha versions and modes

This commit is contained in:
Sufiyan Shaikh
2022-08-16 20:38:48 +05:30
parent fcad492a25
commit e295dccc8a
14 changed files with 262 additions and 25 deletions

View File

@@ -1,6 +1,7 @@
import { TOKENITEM } from '../../core/auth/models/auth-token-info.model';
import { IMPERSONATING_COOKIE, REDIRECT_COOKIE } from '../../core/auth/auth.service';
import { LANG_COOKIE } from '../../core/locale/locale.service';
import { CAPTCHA_COOKIE } from 'src/app/core/google-recaptcha/google-recaptcha.service';
/**
* Cookie for has_agreed_end_user
@@ -155,5 +156,14 @@ export const klaroConfiguration: any = {
*/
onlyOnce: true,
},
{
name: 'google-recaptcha',
purposes: ['registration-password-recovery'],
required: true,
cookies: [
CAPTCHA_COOKIE
],
onlyOnce: true,
}
],
};