在注冊(cè)賬戶,登錄,找回密碼等表單提交的地方需要驗(yàn)證碼,
您可以通過配置的方式?jīng)Q定是否開啟驗(yàn)證碼。
配置文件為:@fecshop/app/appfront/config/modules/Customer.php
打開后通過注釋就可以找到各個(gè)配置項(xiàng).
return [
'customer' => [
'class' => '\fecshop\app\appfront\modules\Customer\Module',
'params'=> [
'register' => [
# 賬號(hào)注冊(cè)成功后,是否自動(dòng)登錄
'successAutoLogin' => true,
# 注冊(cè)登錄成功后,跳轉(zhuǎn)的url
'loginSuccessRedirectUrlKey' => 'customer/account',
# 注冊(cè)頁面的驗(yàn)證碼是否開啟
'registerPageCaptcha' => true,
],
'login' => [
# 在登錄頁面 customer/account/login 頁面登錄成功后跳轉(zhuǎn)的urlkey,
'loginPageSuccessRedirectUrlKey' => 'customer/account',
# 在其他頁面的彈框方式登錄的賬號(hào)成功后,的頁面跳轉(zhuǎn),如果是false,則代表返回原來的頁面。
'otherPageSuccessRedirectUrlKey' => false ,
# 登錄頁面的驗(yàn)證碼是否開啟
'loginPageCaptcha' => false,
# 郵件信息,登錄賬號(hào)后是否發(fā)送郵件
],
'forgotPassword' => [
# 忘記密碼頁面的驗(yàn)證碼是否開啟
'forgotCaptcha' => true,
],
'leftMenu' => [
'Account Dashboard' => 'customer/account',
'Account Information' => 'customer/editaccount',
'Address Book' => 'customer/address',
'My Orders' => 'customer/order',
'My Product Reviews' => 'customer/productreview',
'My Favorite' => 'customer/productfavorite',
],
'contacts' => [
# 聯(lián)系我們頁面的驗(yàn)證碼是否開啟
'contactsCaptcha' => true,
],
'newsletterSubscribe' => [
],
],
],
];
您可以在appfront通過添加配置覆蓋的方式,重新設(shè)置是否開啟驗(yàn)證碼。
更多建議: