Skip to content
Snippets Groups Projects
Commit cdb8dcbf authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

cleanup some formatting

parent 31415adb
Branches
Tags
No related merge requests found
......@@ -120,10 +120,9 @@
$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) {
if (!$_SESSION['user']->last_login)
forward('mod/profile/edit.php?firstlogin=yes');
}
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);
......
......
File changed. Contains only whitespace changes. Show whitespace changes.
......@@ -11,39 +11,23 @@
* @link http://elgg.org/
*/
// require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
global $CONFIG;
// action_gatekeeper();
// Get variables
action_gatekeeper();
$email = get_input('email');
// var_dump($email);
$email = sanitise_string($email);
// var_dump($email);
if (is_email_address($email))
{
if (!get_user_by_email($email))
{
if (is_email_address($email)) {
if (!get_user_by_email($email)) {
forward('?loginwith=UNLlogin&email=' . $email);
}
else
{
} else {
register_error(elgg_echo("Sorry, that email has already been registered. Please try again."));
}
}
else
{
} 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);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment