Commit e79652ff authored by Martin Leblanc's avatar Martin Leblanc
Browse files

ISTWCMS-4546:coding standards

parent 5a754012
* @file
(function ($, Drupal) {
Drupal.behaviors.uwFdsuThemeRespUserLogin = {
attach: function (context, settings) {
// Don't do anything if SimpleSAML isn't enabled.
if ($('#edit-simplesamlphp-auth-login-link').length)
// Hide the normal login form.
if ($('#edit-simplesamlphp-auth-login-link').length) {
// Hide the normal login form.
$('#user-login-form').css('display', 'none');
// Add buttons (using JS because they don't work without JS)
$('#user-login-form').after('<button id="adfs-login-link" class="button--primary">Log in via ADFS</button> &nbsp; <button id="local-login-link" class="button--medium">Log in locally</button>');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment