vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Extending registration to secondary custom database. (https://vborg.vbsupport.ru/showthread.php?t=141929)

PayBas 03-13-2007 10:23 AM

Extending registration to secondary custom database.
 
Hello,

At the moment I am looking into the possibilities of having the vBulletin forum registration hooked up to a secondary database. This database is for a simple secondary website that doesn't have any fancy features.

Basically what I need is that when a user registers, not only will vBulletin querry a new user in the _vbulletin > prefix.user table.
But also in the _otherdb > user table.

This secondary table has a completely different structure, thats why I only need the username and passwords for now.

The tricky part however is that the passwords in this second database cannot be encrypted. They need to be plain text format instead of a salted MD5. This is where my problem lies... how do I make vBulletin pass on the password to a querry as a normal plaintext string instead of this salted MD5 so I can write it to my custom database?

Any advice would be appreciated.

Marco van Herwaarden 03-13-2007 11:15 AM

Without consessions to security, you can not do this as vBulletin will already encrypt the password in the browser before sending it to the server.

Loosing some security, you can add the following to your config.php, but i would not advise this:

PHP Code:

define('DISABLE_PASSWORD_CLEARING'true); 


PayBas 03-13-2007 12:11 PM

Thx, for the quick reply. But can you give me a quick explenation what this will do?

Marco van Herwaarden 03-13-2007 12:23 PM

It will sent the password in plain text to the server, and thus making it available in your scripts.

PayBas 03-13-2007 01:43 PM

Hey that would be great :), and this wont throw any errors on vBulletin serverside?

I'll go try it, thx.


All times are GMT. The time now is 05:26 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.01029 seconds
  • Memory Usage 1,715KB
  • 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