BUG Incorrect path for requirements file

This commit is contained in:
Damian Mooyman 2017-09-12 15:23:36 +12:00 committed by Daniel Hensby
parent f46fe438e4
commit 905c4e04d5
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E
2 changed files with 4 additions and 6 deletions

View File

@ -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)

View File

@ -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")
) )