Problem/Motivation

The cas-links part of the login form is the text that in this screenshot reads "Log in using a site account instead":

It lets the user switch between the Drupal login form and the CAS login button. Placed as it is above the "Log in" button, it causes unnecessary confusion for my users and support calls.

Proposed resolution

Move the cas-links below the login button. I do this in a form alter implementation like this:

if (isset($form['cas_links'])) {
    $form['cas_links']['#weight'] = 101;
}

Remaining tasks

  • Make a patch.

User interface changes

The login form will be changed as described in "Proposed resolution" above.

API changes

None.

Data model changes

None.

Comments

cilefen created an issue. See original summary.

mhagedon’s picture

I'm confused... where is cas_links? I don't see it in the 8.x branch.

cilefen’s picture

@mhagedon Now that's a good question. That's what it looks like in 7. I haven't even tried the D8 version yet, but I blindly assumed the UI is the same.

cilefen’s picture

Version: 8.x-1.x-dev » 7.x-1.x-dev
Issue tags: -Needs backport to D7

It seems this isn't a "thing" in the D8 version because it works differently.

bkosborne’s picture

This is not yet implemented in D8. The only way to login via CAS in the D8 branch is to go to /caslogin (which we will fix to being /cas like the 7.x branch as well).

chishah92’s picture

Assigned: Unassigned » chishah92
chishah92’s picture

Status: Active » Needs review
StatusFileSize
new422 bytes

Here is the patch for 7.x version of CAS for drupal 7 regarding change in the position of CAS links.

Thanks
~Chirag

  • bkosborne committed fdcd604 on 7.x-1.x authored by chishah92
    Issue #2678256 by chishah92: Position of cas-links above the login...
bkosborne’s picture

Status: Needs review » Fixed

Yes this is much better. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.