vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Automatic login for users (https://vborg.vbsupport.ru/showthread.php?t=149416)

dantilley 06-11-2007 04:28 AM

Automatic login for users
 
Hi,

Can anyone please tell me if it's possible to make it so that a user can be made to automatically login to Vbulletin under certain circumstances, without having to actually use the normal forum login controls?

Specifically, I have a Vbulletin forum within a password protected, members-only area of my web site. Once a user has logged into that members only area (using my own code, independent of VBulletin) I would like to make it so that when they click the link to the Forum, they can go straight in without having to then subsequently log into the forum. At the moment, users effectively have to log in twice which is not quite so user friendly.

The problem is that some not so net-savvy users are finding it awkward having to log in twice and so are not using the site so much.

Any help would be much appreciated, thanks,

Dan.

PS - Asked already in vbulletin.com and it was suggested I post it here instead.

Dismounted 06-11-2007 06:16 AM

You could model your login system to use vBulletin's instead. It would eliminate the need for two separate systems.

dantilley 06-12-2007 02:47 AM

The problem there could arise from the fact that my site currently uses ASP to log-in and not PHP as VBulletin does. Also, there's a fair amount of code that's been created around logging in and maintaining users' logged in status which I'd rather not re-write if at all possible.

The other problems come from people changing their passwords through the main site, and also when we have to add new users into our private area of the site, as they will need to go straight into the forum database too. What I ideally need is some functions I can access like:

login_to_forum (user_name);
add_user (user_name, password, email);
delete_user (user_name);
change_password (user_name, new_password);

Now, I realise this might be asking a bit much, but if there's any way I can pointed in the right direction for getting together some functions which can achieve the above commands then that would be much appreciated.

Thanks a lot in advance,

Dan.

Dismounted 06-12-2007 09:25 AM

Passwords are encoded as follows:
PHP Code:

md5(md5($password) . $salt

You will find the salt in the user table.

borntosucceed 08-12-2007 01:10 PM

Hi;
Have you found a solution yet as I am looking for exactly the same?
We have an established membership site (written in asp.net) and I am looking to write some code to
1) Register all the existing users with the forum
2) Whenever a new user joins add him as a user to the forum as well
3) When a user is in the member area in our site and clicks on the forum, I would like him/her to be able to be logged in automatically without re-entering user information.

TIA
Thomas


All times are GMT. The time now is 02:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01076 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete