mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 22:43:03 +00:00
[UXP-10] dynamic recaptcha versions and modes
This commit is contained in:
@@ -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,
|
||||
}
|
||||
],
|
||||
};
|
||||
|
Reference in New Issue
Block a user