Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-16-2015, 10:27 PM
amreboot amreboot is offline
 
Join Date: Jul 2013
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Disable Failed Login Notifications

I have searched everywhere, how do I disabled the "Failed Login Notifications" from being sent to members?

We are seeing a VERY large increased amount of malicious attempts from various countries in trying to gain access to members' accounts.
I have blocked several countries from the forum via the .htaccess file, but there are just too many countries doing this, including the USA.

At this point, I would like to simply disable the email notification from being sent.

How do I do this?
Reply With Quote
  #2  
Old 03-16-2015, 10:39 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no setting to disable them. If you wanted, you could edit file includes/functions_login.php and in function exec_strike_user(), around line 109, find this code:
Code:
if ($strikes_user['strikes'] == 4)		// We're about to add the 5th Strike for a user
{
	if ($user = $vbulletin->db->query_first("SELECT userid, username, email, languageid FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string($username) . "' AND usergroupid <> 3"))
	{
		$ip = IPADDRESS;
		eval(fetch_email_phrases('accountlocked', $user['languageid']));
//		vbmail($user['email'], $subject, $message, true);
	}
}

and add the two forward slashes (in red) before the vbmail line.

I'm also working on a couple of mods that might help with this. One will allow human verification on login (after a configurable number of strikes) so that hopefully the guessers (assuming they're automated) will not be able to generate 5 strikes. The other one will just allow you to disable the email sending without editing a file (and maybe also give options for other types of notification, if I can get around to it).
Reply With Quote
  #3  
Old 03-17-2015, 02:19 AM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm a soft 3 strike triggering a q & a before the hard 5 strike is a good idea KH
Reply With Quote
  #4  
Old 03-17-2015, 02:59 PM
amreboot amreboot is offline
 
Join Date: Jul 2013
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

kh99,

Thanks! That worked.
Reply With Quote
  #5  
Old 03-27-2015, 08:11 PM
Bill Thebert Bill Thebert is offline
 
Join Date: Mar 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a hack/mod that changes vBulletin 4.2.X to use the undisplayed email address (rather than the publicly displayed user handle) for login purposes?

Been looking but haven't found one yet.
Reply With Quote
  #6  
Old 03-27-2015, 08:16 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is one that allows users to log in with their email address, but it doesn't stop the username from being used. I remember looking at it briefly and thinking that there wasn't an easy way to disable login by username, but maybe I'll have another look.
Reply With Quote
  #7  
Old 03-27-2015, 08:22 PM
Bill Thebert Bill Thebert is offline
 
Join Date: Mar 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
There is one that allows users to log in with their email address, but it doesn't stop the username from being used. I remember looking at it briefly and thinking that there wasn't an easy way to disable login by username, but maybe I'll have another look.
Yeah . . . I found one that allowed login via EITHER the email OR the handle.

And you're right, I want to DISABLE logging in by username and instead allow login ONLY by the hidden email address.
Reply With Quote
  #8  
Old 03-27-2015, 08:43 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, I almost forgot about this thread: https://vborg.vbsupport.ru/showthrea...me#post2540362

I did think of a way to do it (without that other mod) by making a file change. It does have that one problem I mentioned though.
Reply With Quote
  #9  
Old 03-27-2015, 09:49 PM
Bill Thebert Bill Thebert is offline
 
Join Date: Mar 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Oh, I almost forgot about this thread: https://vborg.vbsupport.ru/showthrea...me#post2540362

I did think of a way to do it (without that other mod) by making a file change. It does have that one problem I mentioned though.
Thanks. I think I'll give this a try.

But before I do, I'll have to give everyone a heads up.
Reply With Quote
  #10  
Old 03-27-2015, 10:12 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod should work for the same purpose too - https://vborg.vbsupport.ru/showthread.php?t=264192

There is also a post on here by former vb.org coordinator Marco where he shows you how to edit the file and change to email only login which is similar to what kh99 did in the post he linked you to above so use his example asd its more current .
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:42 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.04506 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete