ryanf Posted June 25, 2004 Posted June 25, 2004 Hey, I dont know where to post this so I am doing it here. By mistake today I was signed in on my test account and was changing stuff in the account creation process, such as what was required and what not, and I created a new account to test it. I had forgotten to log off before hand and when I was finished, my new account took the shopping cart of the old one and also I have account activation required and it let me go shopping on the new account before it was activated. After I logged out, it wouldn't let me back in (since it wasn't activated) but I was wondering if there was a way to stop this. Such as if your logged in you can't create an account, I think that would be easiest. It's not really a bug and doesn't bother me too much since who is going to be doing that anyway, but it would be nice to tighten down the little loop hole. Comments? Suggestions on how to not allow people to create accounts if they are logged in? Maybe just a if (tep_session_is_registered('customer_id')) { } around the create_account.php? Is there a tep_session_is_not_registered or a !tep_session_is_registered maybe? Thanks, Ryan If I was crafty, this would be a funny signature.
ryanf Posted June 25, 2004 Author Posted June 25, 2004 Hey, I think I solved this, I put this code right after the <!-- body_text //--> and before the <td> tag <?php if (!tep_session_is_registered('customer_id')) { ?> and right before the <!-- body_text_eof //--> near the end of create_account.php I put this: <?php } else { ?> <td class="main" width="100%">Sorry, but you can not create an account if you are already logged in.</td> <?php } ?> It seems to work. Ryan If I was crafty, this would be a funny signature.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.