X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Creating a login page without SSL? (https://forum.x-cart.com/showthread.php?t=52343)

gatordp 02-14-2010 06:08 PM

Creating a login page without SSL?
 
I am trying to make a login page.

I've made a file in main catalog root "mainlogin.php" that I used the code from secure_login.php and commented out the following.


Code:

<?php
require "./auth.php";

/*
if (!empty($_GET[$XCART_SESSION_NAME])) {
    if (empty($_COOKIE[$XCART_SESSION_NAME]))
        $_COOKIE[$XCART_SESSION_NAME] = $XCARTSESSID;
    func_header_location("secure_login.php");
}
*/
require $xcart_dir."/include/categories.php";

$location[] = array(func_get_langvar_by_name("lbl_authentication"), "");

x_session_register("login_antibot_on");
x_session_register("username");
//if ($active_modules["Manufacturers"])
//    include $xcart_dir."/modules/Manufacturers/customer_manufacturers.php";

#
# Assign Smarty variables and show template
#

if ($login_antibot_on) {
    $smarty->assign("login_antibot_on", $login_antibot_on);
}
$smarty->assign("username", $username);
$smarty->assign("main", "secure_login_form");

# Assign the current location line
$smarty->assign("location", $location);

func_display("customer/home.tpl",$smarty);
?>



It displays the form fine but on login tries to go secure (https) and we don't have an ssl and don't plan on using one at this time... how do I bypass the secure login stuff?

jdiehl 02-15-2010 08:44 AM

Re: Creating a login page without SSL?
 
It's just trying to post to a secure page for the login, correct?

In your security options in the admin do you have this turned on?
Use HTTPS for users' login and registration:

That's my best guess without seeing it.


All times are GMT -8. The time now is 11:59 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.