public function settings()
 {
     $this->setTitle('Google Identity');
     $values = Setting::getForScope('google-identity');
     $form = $this->settingsForm($values);
     if ($this->request->getMethod() == 'POST') {
         $params = $this->getParams();
         $form->setValues($params);
         Setting::setForScope('google-identity', $form->getValues());
         $this->successMessage('Settings saved successfully.');
     } else {
         $form->setValues($values);
     }
     $scopes = [];
     Event::trigger('Octo.GoogleIdentity.GetScopes', $scopes);
     $this->template->scopes = implode(' ', array_unique($scopes));
     $this->template->form = $form;
 }