public function boot() { \Backend\Controllers\Auth::extend(function ($controller) { if (\Backend\Classes\BackendController::$action == 'signin') { if (Settings::get('google_button') == 'light') { $CSS[] = 'ssologin-light.css'; } else { $CSS[] = 'ssologin.css'; } if (Settings::get('hide_login_fields') == 1) { $CSS[] = 'hide-login.css'; } $controller->addCss(CombineAssets::combine($CSS, plugins_path() . '/martin/ssologin/assets/css/')); } }); Event::listen('backend.auth.extendSigninView', function ($controller) { return View::make("martin.ssologin::login"); }); }
private function checkSettings($settings = array()) { foreach ($settings as $setting) { if (Settings::get($setting) == '') { throw new ValidationException(['code' => Lang::get('martin.ssologin::lang.errors.google.generic') . Lang::get('martin.ssologin::lang.errors.google.' . $setting . '_blank')]); } } }