mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Incorrect path for requirements file
This commit is contained in:
parent
f46fe438e4
commit
905c4e04d5
@ -3,11 +3,10 @@
|
|||||||
namespace SilverStripe\Security;
|
namespace SilverStripe\Security;
|
||||||
|
|
||||||
use SilverStripe\Admin\AdminRootController;
|
use SilverStripe\Admin\AdminRootController;
|
||||||
|
use SilverStripe\Admin\LeftAndMain;
|
||||||
use SilverStripe\Control\Controller;
|
use SilverStripe\Control\Controller;
|
||||||
use SilverStripe\Control\Director;
|
use SilverStripe\Control\Director;
|
||||||
use SilverStripe\Admin\LeftAndMain;
|
|
||||||
use SilverStripe\Control\HTTPResponse;
|
use SilverStripe\Control\HTTPResponse;
|
||||||
use SilverStripe\Control\Session;
|
|
||||||
use SilverStripe\Core\Convert;
|
use SilverStripe\Core\Convert;
|
||||||
use SilverStripe\Core\Manifest\ModuleLoader;
|
use SilverStripe\Core\Manifest\ModuleLoader;
|
||||||
use SilverStripe\ORM\FieldType\DBField;
|
use SilverStripe\ORM\FieldType\DBField;
|
||||||
@ -22,7 +21,6 @@ class CMSSecurity extends Security
|
|||||||
{
|
{
|
||||||
private static $allowed_actions = array(
|
private static $allowed_actions = array(
|
||||||
'login',
|
'login',
|
||||||
'LoginForm',
|
|
||||||
'success'
|
'success'
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -43,8 +41,8 @@ class CMSSecurity extends Security
|
|||||||
|
|
||||||
// Core styles / vendor scripts
|
// Core styles / vendor scripts
|
||||||
$admin = ModuleLoader::getModule('silverstripe/admin');
|
$admin = ModuleLoader::getModule('silverstripe/admin');
|
||||||
Requirements::javascript($admin->getResourcePath('client/dist/js/vendor.js'));
|
Requirements::javascript($admin->getRelativeResourcePath('client/dist/js/vendor.js'));
|
||||||
Requirements::css($admin->getResourcePath('client/dist/styles/bundle.css'));
|
Requirements::css($admin->getRelativeResourcePath('client/dist/styles/bundle.css'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function login($request = null, $service = Authenticator::CMS_LOGIN)
|
public function login($request = null, $service = Authenticator::CMS_LOGIN)
|
||||||
|
@ -99,7 +99,7 @@ class CMSMemberLoginForm extends MemberLoginForm
|
|||||||
LiteralField::create(
|
LiteralField::create(
|
||||||
'forgotPassword',
|
'forgotPassword',
|
||||||
sprintf(
|
sprintf(
|
||||||
'<p class="cms-security__container__form__forgotPassword"><a href="%s" target="_top">%s</a></p>',
|
'<a href="%s" class="cms-security__container__form__forgotPassword btn btn-secondary" target="_top">%s</a>',
|
||||||
$this->getExternalLink('lostpassword'),
|
$this->getExternalLink('lostpassword'),
|
||||||
_t(__CLASS__.'.BUTTONFORGOTPASSWORD', "Forgot password")
|
_t(__CLASS__.'.BUTTONFORGOTPASSWORD', "Forgot password")
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user