vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - Update Password File mod (https://vborg.vbsupport.ru/showthread.php?t=215949)

jondrnek 06-10-2009 10:00 PM

Update Password File mod
 
1 Attachment(s)
This mod allows you to run a program to change an external password file when the users changes their password.

For example, you can run htpasswd to change a password file that is used by .htaccess to control access to other web pages outside of vBulletin.

There are two new options in the control panel. One specifies the location of the password file. The other specifies that program used to change the password file.

I'm new to vBulletin and PHP so critiques are welcome.

Post any issue you have here:

You may also need to edit a template to disable the MD5 hashing of the new password before it gets sent to the server. I did not need to do this on my dev server but I did on my production server.

Do that by going to
"Modify User Options Templates" and editing the "modifypassword" template. You will need to change line
Code:

md5hash(currentpassword, currentpassword_md5, junk_output, $show[nopasswordempty]);
to
Code:

md5hash(currentpassword_md5, junk_output, $show[nopasswordempty]);
You also need to go to "Registration Template" and edit the "register" template. You will need to change
Code:

md5hash(password1, document.forms.register.password_md5, junk_output, $show[nopasswordempty]);
md5hash(password2, document.forms.register.passwordconfirm_md5, junk_output, $show[nopasswordempty]);

to
Code:

md5hash(document.forms.register.password_md5, junk_output, $show[nopasswordempty]);
md5hash(document.forms.register.passwordconfirm_md5, junk_output, $show[nopasswordempty]);



Version 1.0.1 has been released to fix a security hole.

Jon

ToMMyHR 08-16-2009 04:59 PM

I can't get this to update the pass file on 3.8.3 :(


All times are GMT. The time now is 09:53 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.01051 seconds
  • Memory Usage 1,712KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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