From f66332a408e39e3145eaeeba59ec0c2a41148f94 Mon Sep 17 00:00:00 2001 From: Rajab Natshah <rajabn@gmail.com> Date: Sun, 7 Jan 2018 19:06:57 +0200 Subject: [PATCH] Issue #2932104: Enable Password Reset Landing Page (PRLP) module in the update function for the [varbase security] feature module. --- .../varbase_security/varbase_security.install | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/varbase_features/varbase_security/varbase_security.install b/modules/varbase_features/varbase_security/varbase_security.install index 014f035a..5f1a82e0 100644 --- a/modules/varbase_features/varbase_security/varbase_security.install +++ b/modules/varbase_features/varbase_security/varbase_security.install @@ -85,3 +85,12 @@ function varbase_security_update_8009() { \Drupal::service('module_installer')->install(['username_enumeration_prevention'], FALSE); } } + +/** + * Enable Password Reset Landing Page (PRLP) module. + */ +function varbase_security_update_8010() { + if (!\Drupal::moduleHandler()->moduleExists('prlp')) { + \Drupal::service('module_installer')->install(['prlp'], FALSE); + } +} -- GitLab