vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Big Prbolem with "Your password is the same as your username" (https://vborg.vbsupport.ru/showthread.php?t=223356)

Ebi_P 09-16-2009 07:07 PM

Big Prbolem with "Your password is the same as your username"
 
Hello,
i have an integrated Portal with Vbulletin Forum.
for some users it says
"Your password is the same as your username. This is no longer allowed."

which .php file need to modify to ignore this error and allow same username&password login?

Thanks

Lynne 09-16-2009 07:27 PM

I would strongly suggest against doing that. This was added when there were a series of accounts hacked because of this same username/password thing. I forget when it was, but at that time it seemed there were several threads started every day on vb.com from site owners who were getting spammed by accounts that were taken over do to this issue.

Ebi_P 09-16-2009 07:44 PM

Greetings Lynne,

Thank you for quick reply.

as i said, i have integrated Portal (VLDPersonals) with Vbulletin Forum. and i have been Disabled Registration on Forum because of registration only should be on Portal and my users can register on Portal and Autologin to froum too.

i have many users with same username&password and i really need to pass this error.
thanks

Lynne 09-16-2009 08:29 PM

OK, well... doing a Search in Phrases for "Your password is the same as your username." gives me the phrase "username_same_as_password". Doing a search in the 3.8 files for "username_same_as_password" gives me global.php around line 981. That is the code you want to modify.

Ebi_P 09-17-2009 08:24 AM

Thanks.

i found it but how should it modify?
i don't know which part must be start with // or another modification to resolve this problem:
=========================================

// password same as username?
if (!defined('ALLOW_SAME_USERNAME_PASSWORD') AND $vbulletin->userinfo['userid'])
{
// save the resource on md5'ing if the option is not enabled or guest
if ($vbulletin->userinfo['password'] == md5(md5($vbulletin->userinfo['username']) . $vbulletin->userinfo['salt']))
{
if ((THIS_SCRIPT != 'login' AND THIS_SCRIPT != 'profile') OR (THIS_SCRIPT == 'profile' AND $_REQUEST['do'] != 'editpassword' AND $_POST['do'] != 'updatepassword'))
{
eval(standard_error(fetch_error('username_same_as_ password',
$vbulletin->session->vars['sessionurl']
)));
}

===========================================

Adrian Schneider 09-17-2009 08:37 AM

Add this to ./includes/config.php:
PHP Code:

define('ALLOW_SAME_USERNAME_PASSWORD'true); 


Ebi_P 09-17-2009 08:48 AM

Quote:

Originally Posted by SirAdrian (Post 1886230)
Add this to ./includes/config.php:
PHP Code:

define('ALLOW_SAME_USERNAME_PASSWORD'true); 



Hello SirAdrian,

Thanks in advance. it worked.
good Luck dear

Lynne 09-17-2009 05:47 PM

Quote:

Originally Posted by SirAdrian (Post 1886230)
Add this to ./includes/config.php:
PHP Code:

define('ALLOW_SAME_USERNAME_PASSWORD'true); 


I didn't know about that. Good to know! :up:

Adrian Schneider 09-17-2009 06:24 PM

NP.

Neither did I, but it was in the code he posted for us. :) Whenever you see constants used like that, it means you can just define them in config.php as a switch.

James Birkett 09-17-2009 06:29 PM

Might I recommend that now you've just publicly explained to us you're allowing users to use their username as a password; don't give out your forum URL :rolleyes:

@Adrian, I was just about to post that, you beat me to it :p


All times are GMT. The time now is 08:48 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.01526 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete