Browse Source

Added hook: allow mods to easily extend the $other_passwords array

ThorstenEurich 12 năm trước cách đây
mục cha
commit
d4de4f8455
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      Sources/LogInOut.php

+ 3 - 0
Sources/LogInOut.php

@@ -358,6 +358,9 @@ function Login2()
 			$other_passwords[] = sha1_smf(strtolower($user_settings['member_name']) . un_htmlspecialchars($_POST['passwrd']));
 		}
 
+		// Allows mods to easily extend the $other_passwords array
+		call_integration_hook('integrate_other_passwords');
+
 		// Whichever encryption it was using, let's make it use SMF's now ;).
 		if (in_array($user_settings['passwd'], $other_passwords))
 		{