vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Manual user login (https://vborg.vbsupport.ru/showthread.php?t=50476)

Syberius 03-19-2003 07:37 PM

Manual user login
 
Following on from a previous post of mine (https://vborg.vbsupport.ru/showthrea...threadid=49544 ), I now need to come up with a way to login a user manually from outside the vbb system.

My site is on the same server and MySQL server but we use different databases.

I allready have some inter-vbb control but the final part of the code needs me to create a manual login where when a user submits their login data, the main window preforms the login and proceeds to the member area on my site while another window is opened which redirects to the users CP on the vbb site.

I know this is possible but I dont know enough about the workings of VBB to do this.

Can someone please tell me what database fields I have to change/update/use to achive this?

Thx in advance.

Syberius,

filburt1 03-19-2003 08:19 PM

You can set the bbusername and bbpassword cookies with the username and passhash of the user, respectively.

Syberius 03-19-2003 08:55 PM

not sure what you mean there, why are they stored in cookies?

filburt1 03-19-2003 09:38 PM

Otherwise the board will forget that you're logged in.

Syberius 03-19-2003 10:01 PM

yeah, sry what i meant was why is the pass stored like that but then i noticed that is it passed through MD5 first.

I thought that was the case, I would have hoped that professionals would not put UNENCRYPTED passwords in a cookie!

Im getting on well now,

thx,

Syberius 03-19-2003 10:51 PM

I have just hit another problem.

The sessions and cookies are being created fine now but when you return to the vbb board after being logged in via my site, vbb does not pickup on the login.

Is this maybe down to the path/domain of setcookie or can this just not be done full stop, I would like to know if I am fighting a loosing battle

Syb,


All times are GMT. The time now is 07:32 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.02185 seconds
  • Memory Usage 1,718KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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