Skip to content
Browse files

Changed to HTTPS

  • Loading branch information...
1 parent 48be901 commit 3b3938887d6608808175670e7d497fd48c12f837 @singpolyma committed Sep 22, 2009
Showing with 5 additions and 5 deletions.
  1. +5 −5 login/finish_auth.php
View
10 login/finish_auth.php
@@ -5,10 +5,10 @@
$return = $_SESSION['return_to']; unset($_SESSION['return_to']);
$action = $_SESSION['action']; unset($_SESSION['action']);
-if(!$return) $return = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
+if(!$return) $return = 'https://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
if(!strstr($return, '?')) $return .= '?';
-$process_url = sprintf("http://%s%s/finish_auth.php",
+$process_url = sprintf("https://%s%s/finish_auth.php",
$_SERVER['HTTP_HOST'],
dirname($_SERVER['PHP_SELF']));
@@ -21,12 +21,12 @@
if ($response->status == Auth_OpenID_CANCEL) {
// This means the authentication was cancelled.
if($action == 'add')
- header('Location: http://'.$_SERVER['HTTP_HOST'].dirname(dirname($_SERVER['PHP_SELF'])),true,303);//redirect to home
+ header('Location: https://'.$_SERVER['HTTP_HOST'].dirname(dirname($_SERVER['PHP_SELF'])),true,303);//redirect to home
else
- header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/out.php',true,303);//logout, redirect to home
+ header('Location: https://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/out.php',true,303);//logout, redirect to home
} else if ($response->status == Auth_OpenID_FAILURE) {
$msg = "OpenID authentication failed: " . $response->message;
- header('Location: '.$return.'&error='.urlencode($msg),true,303);
+ header('Location: https://theveeb.com/login?error='.urlencode($msg),true,303);
die;
} else if ($response->status == Auth_OpenID_SUCCESS) {
require(dirname(__FILE__).'/../include/connectDB.php');//connect to database

0 comments on commit 3b39388

Please sign in to comment.
Something went wrong with that request. Please try again.