Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPENEUROPA-1837: Replace CAS references with EU Login. #71

Merged
merged 3 commits into from
May 6, 2019

Conversation

imanoleguskiza
Copy link
Member

OPENEUROPA-1837

Description

Replace CAS references with EU Login.

Change log

  • Added:
  • Changed: Replace CAS references with EU Login.
  • Deprecated:
  • Removed:
  • Fixed:
  • Security:

Commands

[Insert commands here]

Copy link
Contributor

@upchuk upchuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@imanoleguskiza What you did looks good. But let's go a bit further and replace "CAS" instances with "EU Login". See screenshot:

Screenshot 2019-05-06 14 17 33

@imanoleguskiza
Copy link
Member Author

My bad, I just followed the items in the ticket and failed to double check other instances.

function oe_authentication_form_bulk_add_cas_users_alter(&$form, &$form_state, $form_id) {

if (isset($form['intro']['#markup'])) {
$form['intro']['#markup'] = t("Use this form to pre-register one or more users, allowing them to log in using EU Login.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single quotes everywhere.

@@ -47,6 +47,14 @@ protected function alterRoutes(RouteCollection $collection): void {
'_controller' => '\Drupal\oe_authentication\Controller\ProxyCallbackController::callback',
]);
}

// Replace default cas login route with eulogin one.
$route = $collection->get('cas.login');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's check if these routes exist before changing them.

@imanoleguskiza imanoleguskiza merged commit 2cacf38 into master May 6, 2019
@imanoleguskiza imanoleguskiza deleted the OPENEUROPA-1837 branch May 6, 2019 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants