vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=264)
-   -   Auto-login or redirect (https://vborg.vbsupport.ru/showthread.php?t=317356)

WeBBy 02-16-2015 01:01 AM

Auto-login or redirect
 
Why is vbb 5.x so complicated, convoluted, and poorly documented???

Having gotten an auto-registration working, I am now trying to get an auto login to work.
BUT, I cannot even find out where the login script is being executed!!!

You can delete all of these:
./core/login.php
./core/includes/functions_login.php
./core/packages/forumrunner/include/login.php
and still login/logout ... WTF

I would not mind logging in through the main login form using javascript but need to change the redirect which I cannot find because it is not in any login.php file :confused:

There is an older post about auto login where they were working on:
PHP Code:

 $auth vB_User::verifyAuthentication($username$passwordnullnull);
         if(
$auth) {
 
$res vB_User::processNewLogin($auth$vbulletin->GPC['logintype'], $vbulletin->GPC['cssprefs']);
         if(
$res) {
 
vbsetcookie(COOKIE_PREFIX 'userid'$res['userid'], falsetruetrue);
 
vbsetcookie(COOKIE_PREFIX 'password'$res['password'], falsetruetrue);
 
vbsetcookie(COOKIE_PREFIX 'sessionhash'$res['sessionhash'], falsefalsetrue);
     }
         } 

Which they extracted from ./core/login.php (which is apparently not used), but more is needed to set the cookie since vB User is not defined.

Maybe it would work if I knew how to define the vB User.

Any help or ideas?

Thanx

Dead Eddie 02-16-2015 01:17 AM

Have you looked at includes/vb5/frontend/controller/auth.php?

WeBBy 02-16-2015 02:31 AM

So that's where the bloody login form goes!

It can probably get an auto login to work through a javascript auto submit and a different redirect.

Would be nice though to set the cookies with php but I am more of a hacker than a coder and just trying to figure out vb5 is really beyond me.


All times are GMT. The time now is 11:00 PM.

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.02072 seconds
  • Memory Usage 1,719KB
  • 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
  • (3)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