vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   External PHP login script (https://vborg.vbsupport.ru/showthread.php?t=199531)

Becca 12-22-2008 03:55 PM

External PHP login script
 
Hello!

I am developing some software for users to use with the forum. Activity in the forum and in the software will affect each other, so the user must login to the software using their forum account.

I am curious as to how i could use the users existing password to achieve this, instead of creating a new password for each user. I understand the basics of PHP but do not understand the more complex elements such as how the passwords are encrypted for Vbulletin.

Does anyone know if there is a simple example PHP script out there which does the following:

Code:

$username = the inputted username
$password = the inputted password

if $password = password in the Vbulletin database for $username
  echo "login success"
else
  echo "login failed"


Lynne 12-22-2008 05:34 PM

This has been brought up several times before - logging in only once for a whole site. Do a search on "registration" or "login" in both this forum and take a look at the Articles forums.

Becca 12-22-2008 05:48 PM

Thanks - sorry if this was a repost of previous questions!

Lynne 12-22-2008 05:51 PM

Just do a search and see if you find what you are looking for. It really has been brought up several times, but every site is different and has different needs. So, just look around and see if you can find something close to what you want.

Becca 12-24-2008 04:43 PM

Thanks for the help!

For those who have the same problem and need the answer, here it is:

md5(md5(password)+salt)

vbplusme 12-25-2008 05:13 AM

seems that answers a question that wasn't asked, at least not in this thread, lol

Dismounted 12-25-2008 07:58 AM

Quote:

Originally Posted by vbplusme (Post 1693295)
seems that answers a question that wasn't asked, at least not in this thread, lol

Read the first post again - it definitely was the question asked. ;)


All times are GMT. The time now is 07:41 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.01881 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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