Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PlanetRed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
PlanetRed
Commits
cdb8dcbf
Commit
cdb8dcbf
authored
15 years ago
by
Eric Rasmussen
Browse files
Options
Downloads
Patches
Plain Diff
cleanup some formatting
parent
31415adb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cas_auth/start.php
+4
-6
4 additions, 6 deletions
cas_auth/start.php
cas_auth/views/default/account/forms/login.php
+1
-1
1 addition, 1 deletion
cas_auth/views/default/account/forms/login.php
cas_auth/views/default/actions/getemail.php
+18
-34
18 additions, 34 deletions
cas_auth/views/default/actions/getemail.php
with
23 additions
and
41 deletions
cas_auth/start.php
+
4
−
6
View file @
cdb8dcbf
...
...
@@ -119,12 +119,11 @@
system_message
(
elgg_echo
(
'loginok'
));
$cas_user
=
str_replace
(
'-'
,
'_'
,
$cas_user
);
//user is logged in now, this is the last step - forward based on whether they have logged in before
$lastlogin_date
=
$_SESSION
[
'user'
]
->
last_login
;
if
(
!
$lastlogin_date
)
{
//user is logged in now, this is the last step - forward based on whether they have logged in before
if
(
!
$_SESSION
[
'user'
]
->
last_login
)
forward
(
'mod/profile/edit.php?firstlogin=yes'
);
}
forward
(
"pg/profile/unl_"
.
$cas_user
);
else
forward
(
"pg/profile/unl_"
.
$cas_user
);
}
else
{
register_error
(
elgg_echo
(
'loginerror'
));
}
...
...
@@ -243,7 +242,6 @@
//Replace the hyphen in a student's name with an underscore
$username
=
str_replace
(
'-'
,
'_'
,
$username
);
if
(
$user
=
get_user_by_username
(
$username
))
{
// User exists, login
return
login
(
$user
);
...
...
This diff is collapsed.
Click to expand it.
cas_auth/views/default/account/forms/login.php
+
1
−
1
View file @
cdb8dcbf
...
...
@@ -24,7 +24,7 @@
//<input name=\"username\" type=\"text\" class="general-textarea" /></label>
?>
<div
id=
"login"
class=
"loginPage"
>
<div
id=
"login"
class=
"loginPage"
>
<div
class=
"two_col left"
>
<h2
class=
"sec_main"
>
Students, Faculty, Staff
</h2>
...
...
This diff is collapsed.
Click to expand it.
cas_auth/views/default/actions/getemail.php
+
18
−
34
View file @
cdb8dcbf
...
...
@@ -10,44 +10,28 @@
* @copyright Curverider Ltd 2008-2009
* @link http://elgg.org/
*/
// require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
global
$CONFIG
;
// action_gatekeeper();
// Get variables
$email
=
get_input
(
'email'
);
// var_dump($email);
$email
=
sanitise_string
(
$email
);
// var_dump($email);
action_gatekeeper
();
$email
=
get_input
(
'email'
);
$email
=
sanitise_string
(
$email
);
if
(
is_email_address
(
$email
))
{
if
(
!
get_user_by_email
(
$email
))
{
forward
(
'?loginwith=UNLlogin&email='
.
$email
);
}
else
{
register_error
(
elgg_echo
(
"Sorry, that email has already been registered. Please try again."
));
}
if
(
is_email_address
(
$email
))
{
if
(
!
get_user_by_email
(
$email
))
{
forward
(
'?loginwith=UNLlogin&email='
.
$email
);
}
else
{
register_error
(
elgg_echo
(
"Sorry, that email has already been registered. Please try again."
));
}
else
{
register_error
(
elgg_echo
(
"Sorry, that is not a complete email address. Please try again."
));
}
}
else
{
register_error
(
elgg_echo
(
"Sorry, that is not a complete email address. Please try again."
));
}
$qs
=
explode
(
'?'
,
$_SERVER
[
'HTTP_REFERER'
]);
$qs
=
$qs
[
0
];
$qs
.
=
"?e="
.
urlencode
(
$email
);
forward
(
$CONFIG
->
url
.
'mod/cas_auth/views/default/account/getemail.php?e='
.
urlencode
(
$email
));
$qs
=
explode
(
'?'
,
$_SERVER
[
'HTTP_REFERER'
]);
$qs
=
$qs
[
0
];
$qs
.
=
"?e="
.
urlencode
(
$email
);
forward
(
$CONFIG
->
url
.
'mod/cas_auth/views/default/account/getemail.php?e='
.
urlencode
(
$email
));
?>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment