From a1fbae2f140e3a8c94b9c26ecd532aab6b44a02d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 10 Feb 2018 17:31:03 +0100 Subject: [PATCH] captcha --- lam/help/help.inc | 7 +++++-- lam/lib/selfService.inc | 16 ++++++++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/lam/help/help.inc b/lam/help/help.inc index 25001c8e..82e8a417 100644 --- a/lam/help/help.inc +++ b/lam/help/help.inc @@ -2,11 +2,10 @@ namespace LAM\HELP; use \LAM\TYPES\TypeManager; /* -$Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) Copyright (C) 2003 - 2006 Michael Duergner - 2003 - 2017 Roland Gruber + 2003 - 2018 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -302,6 +301,10 @@ $helpArray = array ( "Text" => _('If checked then also users who did not setup a second factor are able to login.')), "520" => array ("Headline" => _("Generate random password"), "Text" => _("This will set a random password and display it on the screen or send it to the user via mail. Please edit your LAM server profile to setup the mail settings.")), + "521" => array ("Headline" => _('Google reCAPTCHA'), + "Text" => _('Please enter the site and secret key you got from Google reCAPTCHA.')), + "522" => array ("Headline" => _('Secure login'), + "Text" => _('Protect the self service login with a captcha.')), "550" => array ("Headline" => _("From address"), "Text" => _("This email address will be set as sender address of all password mails. If empty the system default (php.ini) will be used.")), "551" => array ("Headline" => _("Subject"), diff --git a/lam/lib/selfService.inc b/lam/lib/selfService.inc index abbd1b59..422a2ebe 100644 --- a/lam/lib/selfService.inc +++ b/lam/lib/selfService.inc @@ -1,10 +1,9 @@ twoFactorAuthenticationLabel = null; $this->twoFactorAuthenticationOptional = false; $this->twoFactorAuthenticationCaption = ''; + $this->captchaProvider = '-'; + $this->reCaptchaSiteKey = ''; + $this->reCaptchaSecretKey = ''; + $this->captchaOnLogin = false; } }