Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UNL Information Services
UNL-CMS
Commits
ed8cd01d
Commit
ed8cd01d
authored
Oct 13, 2012
by
Tim Steiner
Browse files
Creating a branch I can use to disable logins for the hosting.com to Dell migration.
parent
6d079a69
Changes
1
Hide whitespace changes
Inline
Side-by-side
sites/all/modules/unl/unl_cas/unl_cas.module
View file @
ed8cd01d
...
...
@@ -13,6 +13,9 @@ function unl_cas_enable() {
* Implements hook_init().
*/
function
unl_cas_init
()
{
$GLOBALS
[
'user'
]
=
drupal_anonymous_user
();
return
;
// If no one is claiming to be logged in while no one is actually logged in, we don't need CAS.
if
(
!
array_key_exists
(
'unl_sso'
,
$_COOKIE
)
&&
user_is_anonymous
())
{
return
;
...
...
@@ -139,6 +142,9 @@ function unl_cas_validate_ticket() {
*/
function
unl_cas_form_alter
(
&
$form
,
&
$form_state
,
$form_id
)
{
if
(
$form_id
==
'user_login'
)
{
drupal_set_message
(
'Logins have been disabled while we migrate to our new host.'
,
'error'
);
$form
=
array
(
'#parents'
=>
array
());
return
;
$cas
=
unl_cas_get_adapter
();
unset
(
$_GET
[
'destination'
]);
drupal_goto
(
$cas
->
getLoginUrl
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment