vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   md5 in post (https://vborg.vbsupport.ru/showthread.php?t=71379)

DF-inside 11-05-2004 09:18 AM

md5 in post
 
when you login, the password is already done with md5 once and then posted. This is done in the javascript i think, but dont know how.

This because i have a pagelogin also, and i want to post it to the vb login, but i need to md5 the password before i post it.

Anyone an idea?

Andreas 11-05-2004 09:32 AM

Take a look at clientscript/vbulletin_md5.js
Basically you have to create 2 hidden fields (vb_login_md5password and vb_login_md5password_utf) and then call md5hash() upon posting the form, providing the fieldnames:

HTML Code:

onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)"

Colin F 11-05-2004 09:41 AM

Be aware that you might have to include some of the javascript files of vBulletin, as md5hash() isn't a predefined Javascript function, as far as I know.

DF-inside 11-05-2004 09:43 AM

Thx

Do you also know which template i see the loginform of vb3.. where the <form ....> is

nm, got it :)

Andreas 11-05-2004 09:43 AM

Yep, vbulletin_md5.js must be included.

You can find the form in several templates - STANDARD_ERROR or STANDARD_ERROR_LITE for example.

DF-inside 11-05-2004 10:00 AM

Thanks for the help
Got it working :):)


All times are GMT. The time now is 09:33 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.01143 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
  • (1)bbcode_html_printable
  • (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