Plugin Directory

Changeset 1337352


Ignore:
Timestamp:
01/27/2016 05:13:06 PM (10 years ago)
Author:
convissor
Message:

Squash for release 0.54.0.

Location:
login-security-solution/trunk
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • login-security-solution/trunk/admin.php

    r1253039 r1337352  
    189189
    190190        if ($this->options['pw_reuse_count']) {
    191             $sql = "SELECT ID, user_pass FROM `$wpdb->users`";
    192             $result = $wpdb->get_results($sql, ARRAY_A);
    193             if (!$result) {
    194                 die(self::ID . ' could not find users.');
    195             }
    196 
    197             foreach ($result as $user) {
    198                 if (!$this->save_pw_hash($user['ID'], $user['user_pass'])) {
    199                     die(self::ID . ' could not save password hash.');
     191            $i = 0;
     192
     193            while (true) {
     194                $sql = "SELECT ID, user_pass FROM `$wpdb->users`
     195                    LIMIT $i, 1000";
     196
     197                $result = $wpdb->get_results($sql, ARRAY_A);
     198                if (!$result) {
     199                    if ($i == 0) {
     200                        die(self::ID . ' could not find users.');
     201                    } else {
     202                        break;
     203                    }
    200204                }
     205
     206                foreach ($result as $user) {
     207                    if (!$this->save_pw_hash($user['ID'], $user['user_pass'])) {
     208                        die(self::ID . ' could not save password hash.');
     209                    }
     210                }
     211
     212                $i += 1000;
    201213            }
    202214        }
  • login-security-solution/trunk/languages/login-security-solution-de_DE.po

    r1253039 r1337352  
    562562
    563563#: login-security-solution.php:697 tests/LoginMessageTest.php:104
    564 msgid "Your password has expired. Please log and change it."
     564msgid "Your password has expired. Please log in and change it."
    565565msgstr ""
    566566"Dein Passwort ist abgelaufen. Bitte logge dich ein und wähle ein neues."
  • login-security-solution/trunk/languages/login-security-solution-fi_FI.po

    r1253039 r1337352  
    526526
    527527#: login-security-solution.php:697 tests/LoginMessageTest.php:104
    528 msgid "Your password has expired. Please log and change it."
     528msgid "Your password has expired. Please log in and change it."
    529529msgstr "Salasanasi on vanhentunut. Ole hyvä ja vaihda se."
    530530
  • login-security-solution/trunk/languages/login-security-solution-fr_FR.po

    r1253039 r1337352  
    573573# @ login-security-solution
    574574#: login-security-solution.php:697 tests/LoginMessageTest.php:104
    575 msgid "Your password has expired. Please log and change it."
     575msgid "Your password has expired. Please log in and change it."
    576576msgstr "Votre mot de passe a expiré. Veuillez vous connecter et le changer."
    577577
  • login-security-solution/trunk/languages/login-security-solution-it_IT.po

    r1253039 r1337352  
    547547
    548548#: login-security-solution.php:697 tests/LoginMessageTest.php:104
    549 msgid "Your password has expired. Please log and change it."
     549msgid "Your password has expired. Please log in and change it."
    550550msgstr "La tua password è scaduta. Per favore accedi e cambiala."
    551551
  • login-security-solution/trunk/languages/login-security-solution-ja.po

    r1253039 r1337352  
    540540
    541541#: login-security-solution.php:697 tests/LoginMessageTest.php:104
    542 msgid "Your password has expired. Please log and change it."
     542msgid "Your password has expired. Please log in and change it."
    543543msgstr ""
    544544"あなたのパスワードが失効しました。ログインして、パスワード変更してください。"
  • login-security-solution/trunk/languages/login-security-solution-nl_NL.po

    r1253039 r1337352  
    548548
    549549#: login-security-solution.php:697 tests/LoginMessageTest.php:104
    550 msgid "Your password has expired. Please log and change it."
     550msgid "Your password has expired. Please log in and change it."
    551551msgstr "Je wachtwoord is verlopen. Log in om het te veranderen."
    552552
  • login-security-solution/trunk/languages/login-security-solution-pl_PL.po

    r1253039 r1337352  
    554554
    555555#: login-security-solution.php:697 tests/LoginMessageTest.php:104
    556 msgid "Your password has expired. Please log and change it."
     556msgid "Your password has expired. Please log in and change it."
    557557msgstr "Twoje hasło wygasło. Zaloguj się proszę i zmień je."
    558558
  • login-security-solution/trunk/languages/login-security-solution-pt_BR.po

    r1253039 r1337352  
    567567
    568568#: login-security-solution.php:697 tests/LoginMessageTest.php:104
    569 msgid "Your password has expired. Please log and change it."
     569msgid "Your password has expired. Please log in and change it."
    570570msgstr "Sua senha expirou. Por favor, efetue login para alterar."
    571571
  • login-security-solution/trunk/languages/login-security-solution.pot

    r1253039 r1337352  
    465465
    466466#: login-security-solution.php:697 tests/LoginMessageTest.php:104
    467 msgid "Your password has expired. Please log and change it."
     467msgid "Your password has expired. Please log in and change it."
    468468msgstr ""
    469469
  • login-security-solution/trunk/login-security-solution.php

    r1253039 r1337352  
    77 *
    88 * Plugin URI: https://wordpress.org/plugins/login-security-solution/
    9  * Version: 0.53.0
     9 * Version: 0.54.0
    1010 *         (Remember to change the VERSION constant, below, as well!)
    1111 * Author: Daniel Convissor
     
    4646     * This plugin's version
    4747     */
    48     const VERSION = '0.53.0';
     48    const VERSION = '0.54.0';
    4949
    5050    /**
     
    695695                    break;
    696696                case 'pw_grace':
    697                     $ours = __('Your password has expired. Please log and change it.', 'login-security-solution');
     697                    $ours = __('Your password has expired. Please log in and change it.', 'login-security-solution');
    698698                    $ours .= ' ' . sprintf(__('We provide a %d minute grace period to do so.', 'login-security-solution'), $this->options['pw_change_grace_period_minutes']);
    699699                    break;
  • login-security-solution/trunk/readme.txt

    r1253039 r1337352  
    44Tags: login, password, passwords, strength, strong, strong passwords, password strength, idle, timeout, maintenance, security, attack, hack, lock, lockdown, ban, brute force, brute, force, authentication, xml-rpc, auth, cookie, users
    55Requires at least: 3.3
    6 Tested up to: 4.2
     6Tested up to: 4.4
    77Stable tag: trunk
    88
     
    512512
    513513== Changelog ==
     514
     515= 0.54.0 (2016-01-27) =
     516* Fix memory exhaustion on sites with many users during plugin activation
     517if password history is enabled
     518* Put "in" in "Please log and change it"
    514519
    515520= 0.53.0 (2015-09-25) =
  • login-security-solution/trunk/tests/LoginMessageTest.php

    r923776 r1337352  
    102102        self::$lss->options = $options;
    103103
    104         $ours = __('Your password has expired. Please log and change it.', self::ID);
     104        $ours = __('Your password has expired. Please log in and change it.', self::ID);
    105105        $ours .= ' ' . sprintf(__('We provide a %d minute grace period to do so.', self::ID), $value);
    106106
  • login-security-solution/trunk/tests/TestCase.php

    r923776 r1337352  
    7878 */
    7979require_once dirname(__FILE__) . '/Accessor.php';
    80 
    81 /**
    82  * Obtain the PHPUnit infrastructure
    83  */
    84 require_once 'PHPUnit/Autoload.php';
    8580
    8681/**
Note: See TracChangeset for help on using the changeset viewer.