summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/google-authenticator')
-rw-r--r--plugins/google-authenticator/LICENSE339
-rw-r--r--plugins/google-authenticator/base32.php82
-rw-r--r--plugins/google-authenticator/google-authenticator.php1007
-rw-r--r--plugins/google-authenticator/jquery.qrcode.min.js28
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-da_DK.mobin2736 -> 0 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-da_DK.po113
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-de_DE.mobin2565 -> 0 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-de_DE.po119
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-es_ES.mobin2749 -> 0 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-es_ES.po131
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-fr_FR.mobin2635 -> 0 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-fr_FR.po133
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-it_IT.mobin3324 -> 0 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-it_IT.po143
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-nl_NL.mobin7309 -> 0 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-nl_NL.po317
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-pt_BR.mobin2971 -> 0 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-pt_BR.po123
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-zh_CN.mobin3026 -> 0 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-zh_CN.po126
-rw-r--r--plugins/google-authenticator/lang/google-authenticator.pot260
-rw-r--r--plugins/google-authenticator/readme.txt194
-rw-r--r--plugins/google-authenticator/screenshot-1.jpgbin28821 -> 0 bytes
-rw-r--r--plugins/google-authenticator/screenshot-2.jpgbin101559 -> 0 bytes
-rw-r--r--plugins/google-authenticator/screenshot-3.jpgbin148800 -> 0 bytes
-rw-r--r--plugins/google-authenticator/screenshot-4.jpgbin64993 -> 0 bytes
-rw-r--r--plugins/google-authenticator/screenshot-5.jpgbin24141 -> 0 bytes
27 files changed, 0 insertions, 3115 deletions
diff --git a/plugins/google-authenticator/LICENSE b/plugins/google-authenticator/LICENSE
deleted file mode 100644
index d159169d..00000000
--- a/plugins/google-authenticator/LICENSE
+++ /dev/null
@@ -1,339 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
diff --git a/plugins/google-authenticator/base32.php b/plugins/google-authenticator/base32.php
deleted file mode 100644
index 91bd93e9..00000000
--- a/plugins/google-authenticator/base32.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-/**
- * Encode in Base32 based on RFC 4648.
- * Requires 20% more space than base64
- * Great for case-insensitive filesystems like Windows and URL's (except for = char which can be excluded using the pad option for urls)
- *
- * @package default
- * @author Bryan Ruiz
- **/
-class Base32 {
-
- private static $map = array(
- 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', // 7
- 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', // 15
- 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', // 23
- 'Y', 'Z', '2', '3', '4', '5', '6', '7', // 31
- '=' // padding char
- );
-
- private static $flippedMap = array(
- 'A'=>'0', 'B'=>'1', 'C'=>'2', 'D'=>'3', 'E'=>'4', 'F'=>'5', 'G'=>'6', 'H'=>'7',
- 'I'=>'8', 'J'=>'9', 'K'=>'10', 'L'=>'11', 'M'=>'12', 'N'=>'13', 'O'=>'14', 'P'=>'15',
- 'Q'=>'16', 'R'=>'17', 'S'=>'18', 'T'=>'19', 'U'=>'20', 'V'=>'21', 'W'=>'22', 'X'=>'23',
- 'Y'=>'24', 'Z'=>'25', '2'=>'26', '3'=>'27', '4'=>'28', '5'=>'29', '6'=>'30', '7'=>'31'
- );
-
- /**
- * Use padding false when encoding for urls
- *
- * @return base32 encoded string
- * @author Bryan Ruiz
- **/
- public static function encode($input, $padding = true) {
- if(empty($input)) return "";
- $input = str_split($input);
- $binaryString = "";
- for($i = 0; $i < count($input); $i++) {
- $binaryString .= str_pad(base_convert(ord($input[$i]), 10, 2), 8, '0', STR_PAD_LEFT);
- }
- $fiveBitBinaryArray = str_split($binaryString, 5);
- $base32 = "";
- $i=0;
- while($i < count($fiveBitBinaryArray)) {
- $base32 .= self::$map[base_convert(str_pad($fiveBitBinaryArray[$i], 5,'0'), 2, 10)];
- $i++;
- }
- if($padding && ($x = strlen($binaryString) % 40) != 0) {
- if($x == 8) $base32 .= str_repeat(self::$map[32], 6);
- else if($x == 16) $base32 .= str_repeat(self::$map[32], 4);
- else if($x == 24) $base32 .= str_repeat(self::$map[32], 3);
- else if($x == 32) $base32 .= self::$map[32];
- }
- return $base32;
- }
-
- public static function decode($input) {
- if(empty($input)) return;
- $paddingCharCount = substr_count($input, self::$map[32]);
- $allowedValues = array(6,4,3,1,0);
- if(!in_array($paddingCharCount, $allowedValues)) return false;
- for($i=0; $i<4; $i++){
- if($paddingCharCount == $allowedValues[$i] &&
- substr($input, -($allowedValues[$i])) != str_repeat(self::$map[32], $allowedValues[$i])) return false;
- }
- $input = str_replace('=','', $input);
- $input = str_split($input);
- $binaryString = "";
- for($i=0; $i < count($input); $i = $i+8) {
- $x = "";
- if(!in_array($input[$i], self::$map)) return false;
- for($j=0; $j < 8; $j++) {
- $x .= str_pad(base_convert(@self::$flippedMap[@$input[$i + $j]], 10, 2), 5, '0', STR_PAD_LEFT);
- }
- $eightBits = str_split($x, 8);
- for($z = 0; $z < count($eightBits); $z++) {
- $binaryString .= ( ($y = chr(base_convert($eightBits[$z], 2, 10))) || ord($y) == 48 ) ? $y:"";
- }
- }
- return $binaryString;
- }
-} \ No newline at end of file
diff --git a/plugins/google-authenticator/google-authenticator.php b/plugins/google-authenticator/google-authenticator.php
deleted file mode 100644
index 5d5f8601..00000000
--- a/plugins/google-authenticator/google-authenticator.php
+++ /dev/null
@@ -1,1007 +0,0 @@
-<?php
-/*
-Plugin Name: Google Authenticator
-Plugin URI: https://github.com/ivankruchkoff/google-authenticator
-Description: Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry app as One Time Password generator.
-Author: Ivan Kruchkoff
-Version: 0.52
-Author URI: https://github.com/ivankruchkoff
-Compatibility: WordPress 5.2
-Text Domain: google-authenticator
-Domain Path: /lang
-
-----------------------------------------------------------------------------
-
-
- Thanks to Fabio Zumbi for Portuguese translation.
- Thanks to Guido Schalkx for the Dutch translation.
- Thanks to Henrik Schack for creating / maintaining versions 0.20 to 0.48
- Thanks to Ivan Kruchkoff for his UX improvements in user signup.
- Thanks to Bryan Ruiz for his Base32 encode/decode class, found at php.net.
- Thanks to Tobias Bäthge for his major code rewrite and German translation.
- Thanks to Pascal de Bruijn for his relaxed mode idea.
- Thanks to Daniel Werl for his usability tips.
- Thanks to Dion Hulse for his bugfixes.
- Thanks to Aldo Latino for his Italian translation.
- Thanks to Kaijia Feng for his Simplified Chinese translation.
- Thanks to Ian Dunn for fixing some depricated function calls.
- Thanks to Kimmo Suominen for fixing the iPhone description issue.
- Thanks to Alex Concha for some security tips.
- Thanks to Sébastien Prunier for his Spanish and French translations.
-
-----------------------------------------------------------------------------
-
- Versions from 0.49 onwards
- Copyright 2019 Ivan Kruchkoff
-
- Versions up to and including 0.48
- Copyright 2013 Henrik Schack (email : henrik@schack.dk)
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
-
-class GoogleAuthenticator {
-
-static $instance; // to store a reference to the plugin, allows other plugins to remove actions
-const SETUP_PAGE = 'google_authenticator_user_page';
-protected $error_message = null;
-
-/**
- * Constructor, entry point of the plugin
- */
-function __construct() {
- self::$instance = $this;
- add_action( 'init', array( $this, 'init' ) );
-}
-
-/**
- * Initialization, Hooks, and localization
- */
-function init() {
- if ( ! class_exists( 'Base32' ) ) {
- require_once( 'base32.php' );
- }
-
- if ( ! $this->is_two_screen_signin_enabled() ) {
- add_action( 'login_form', array( $this, 'loginform' ) );
- add_action( 'login_footer', array( $this, 'loginfooter' ) );
- }
-
- add_filter( 'authenticate', array( $this, 'check_otp' ), 50, 3 );
-
- if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
- add_action( 'wp_ajax_GoogleAuthenticator_action', array( $this, 'ajax_callback' ) );
- }
-
- add_action( 'personal_options_update', array( $this, 'personal_options_update' ) );
- add_action( 'profile_personal_options', array( $this, 'profile_personal_options' ) );
- add_action( 'edit_user_profile', array( $this, 'edit_user_profile' ) );
- add_action( 'edit_user_profile_update', array( $this, 'edit_user_profile_update' ) );
-
- add_action( 'admin_enqueue_scripts', array( $this, 'add_qrcode_script' ) );
- add_action( 'admin_menu', array ( $this, 'add_pages' ) );
- add_action( 'network_admin_menu', array ( $this, 'add_pages' ) );
- add_action( 'current_screen', array ( $this, 'redirect_if_setup_required' ) );
- add_action( 'admin_notices', array ( $this, 'successful_signup_message' ) );
- add_action( 'load-admin_page_google_authenticator_user_page', array( $this, 'save_submitted_setup_page' ) );
-
- load_plugin_textdomain( 'google-authenticator', false, basename( dirname( __FILE__ ) ) . '/lang' );
-}
-
-/**
- * Whether we show Google Auth code on the login screen, or after the user has entered their username and password.
- *
- * If it's on a separate screen, it means username / passwords can still be bruteforced, but logins can't occur without 2fa
- *
- * @return bool
- */
-function is_two_screen_signin_enabled() {
- $two_screen_mfa = is_multisite() ? get_site_option( 'googleauthenticator_two_screen_signin' ) : get_option( 'googleauthenticator_two_screen_signin' );
- return !! $two_screen_mfa;
-}
-
-/**
- * Check the verification code entered by the user.
- */
-
-function verify( $secretkey, $thistry, $relaxedmode, $lasttimeslot ) {
- // Did the user enter 6 digits ?
- if ( strlen( $thistry ) != 6) {
- return false;
- } else {
- $thistry = intval ( $thistry );
- }
- // If user is running in relaxed mode, we allow more time drifting
- // ±4 min, as opposed to ± 30 seconds in normal mode.
- if ( $relaxedmode == 'enabled' ) {
- $firstcount = -8;
- $lastcount = 8;
- } else {
- $firstcount = -1;
- $lastcount = 1;
- }
-
- $tm = floor( time() / 30 );
-
- $secretkey=Base32::decode($secretkey);
- // Keys from 30 seconds before and after are valid aswell.
- for ($i=$firstcount; $i<=$lastcount; $i++) {
- // Pack time into binary string
- $time=chr(0).chr(0).chr(0).chr(0).pack('N*',$tm+$i);
- // Hash it with users secret key
- $hm = hash_hmac( 'SHA1', $time, $secretkey, true );
- // Use last nipple of result as index/offset
- $offset = ord(substr($hm,-1)) & 0x0F;
- // grab 4 bytes of the result
- $hashpart=substr($hm,$offset,4);
- // Unpak binary value
- $value=unpack("N",$hashpart);
- $value=$value[1];
- // Only 32 bits
- $value = $value & 0x7FFFFFFF;
- $value = $value % 1000000;
- if ( $value === $thistry ) {
- // Check for replay (Man-in-the-middle) attack.
- // Since this is not Star Trek, time can only move forward,
- // meaning current login attempt has to be in the future compared to
- // last successful login.
- if ( $lasttimeslot >= ($tm+$i) ) {
- error_log("Google Authenticator plugin: Man-in-the-middle attack detected (Could also be 2 legit login attempts within the same 30 second period)");
- return false;
- }
- // Return timeslot in which login happened.
- return $tm+$i;
- }
- }
- return false;
-}
-
-/**
- * Create a new random secret for the Google Authenticator app.
- * 16 characters, randomly chosen from the allowed Base32 characters
- * equals 10 bytes = 80 bits, as 256^10 = 32^16 = 2^80
- */
-function create_secret() {
- $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'; // allowed characters in Base32
- $secret = '';
- for ( $i = 0; $i < 16; $i++ ) {
- $secret .= substr( $chars, wp_rand( 0, strlen( $chars ) - 1 ), 1 );
- }
- return $secret;
-}
-
-/**
- * Add the script to generate QR codes.
- */
-function add_qrcode_script() {
- wp_enqueue_script('jquery');
- wp_register_script('qrcode_script', plugins_url('jquery.qrcode.min.js', __FILE__),array("jquery"));
- wp_enqueue_script('qrcode_script');
-}
-
-/**
- * Add 2fa pages to menus
- */
-function add_pages() {
- // No menu entry for this page
- add_submenu_page( null, esc_html__( 'Google Authenticator', 'google-authenticator' ), null, 'read', self::SETUP_PAGE, array( $this, 'user_setup_page' ) );
-
- // Site admin screen
- add_submenu_page( 'options-general.php', esc_html__( 'Google Authenticator', 'google-authenticator' ), esc_html__( 'Google Authenticator', 'google-authenticator' ), 'manage_options', 'google_authenticator', array( $this, 'admin_setup_page' ) );
-
- // Network admin screen
- add_submenu_page( 'settings.php', esc_html__( 'Google Authenticator', 'google-authenticator' ), esc_html__( 'Google Authenticator', 'google-authenticator' ), 'manage_network_options', 'google_authenticator', array( $this, 'network_admin_setup_page' ) );
-}
-
-/**
- * Determine if a user needs to setup authy 2fa
- * @return bool
- */
-function user_needs_to_setup_google_authenticator() {
- $user = wp_get_current_user();
- $enabled = trim(get_user_option( 'googleauthenticator_enabled', $user->ID ) ) === 'enabled';
- if ( $enabled ) {
- return false;
- }
-
- $must_signup = false;
- $user_role = $user->roles[0];
- $check_single_site_admin_options = true;
-
- if ( is_multisite() ) {
- $roles = get_site_option( 'googleauthenticator_mandatory_mfa_roles', array() );
- if ( in_array( $user_role, $roles ) ) {
- $must_signup = true;
- }
- $check_single_site_admin_options = '1' !== get_site_option( 'googleauthenticator_network_only' ) ;
- }
-
- if ( ! $must_signup && $check_single_site_admin_options ) {
- $roles = get_option( 'googleauthenticator_mandatory_mfa_roles', array() );
- if ( in_array( $user_role, $roles ) ) {
- $must_signup = true;
- }
-
- }
-
- return apply_filters( 'google_authenticator_needs_setup', $must_signup, $user );
-}
-
-/**
- * Send users to the signup page if they must signup.
- */
-function redirect_if_setup_required() {
- if ( $this->user_needs_to_setup_google_authenticator() ) {
- $screen = get_current_screen();
- $pagename = 'admin_page_' . self::SETUP_PAGE;
- if ( is_a( $screen, 'WP_Screen') && in_array( $screen->id, array( $pagename, 'profile' ) ) ) {
- return;
- }
-
- // Some check against super admin so they can enable/disable the plugin.
- $location = admin_url( 'admin.php?page=' . self::SETUP_PAGE );
- wp_redirect( $location);
- exit;
- }
-}
-
-/**
- * Save the GA secret if valid totp is provided
- * @return void
- */
-function save_submitted_setup_page() {
- $this->error_message = null; // Reset a previous error message if it was set
- $user = wp_get_current_user();
- $secret = empty( $_POST['GA_secret'] ) ? false : sanitize_text_field( $_POST['GA_secret']);
- $otp = empty( $_POST['GA_otp_code'] ) ? false : sanitize_text_field( $_POST['GA_otp_code']);
- if ( ! strlen( $secret ) || ! strlen( $otp ) ) {
- return;
- }
- $relaxed_mode = trim( get_user_option( 'googleauthenticator_relaxedmode', $user->ID ) );
- $relaxed_mode = 'enabled' === $relaxed_mode ? 'enabled' : 'disabled';
- if ( $timeslot = $this->verify( $secret, $otp, $relaxed_mode, '' ) ) {
- update_user_option( $user->ID, 'googleauthenticator_lasttimeslot', $timeslot, true );
- update_user_option( $user->ID, 'googleauthenticator_secret', $secret, true );
- update_user_option( $user->ID, 'googleauthenticator_enabled', 'enabled', true );
- $location = admin_url( 'index.php?googleauthenticator=enabled' );
- wp_redirect( $location );
- exit;
- };
-
- $this->error_message = new WP_Error( 'invalid-otp', esc_html__( "OTP code doesn't match supplied secret, please check you've configured Authenticator correctly.", 'google-authenticator' ) );
-}
-
-/**
- * Show the user a success message after we redirect them following successful google authenticator setup
- */
-function successful_signup_message() {
- if ( ! empty( $_GET['googleauthenticator'] ) && 'enabled' === $_GET['googleauthenticator'] ) : ?>
- <div class="updated notice">
- <p><?php esc_html_e( 'Congratulations, you have successfully enabled Google Authenticator for your account', 'google-authenticator' ); ?></p>
- </div>
-
- <?php endif;
-}
-
-/**
- * Callback function to render the google authenticator setup page
- */
-function user_setup_page() {
- $user = wp_get_current_user();
- $enabled = trim(get_user_option( 'googleauthenticator_enabled', $user->ID ) ) === 'enabled';
- if ( $enabled ) {
- $location = admin_url( 'index.php' );
- wp_redirect( $location );
- exit;
- }
- $error = $this->error_message;
-
- $app_links = array(
- array(
- 'text' => __( 'iOS: Authy', 'google-authenticator' ),
- 'link' => 'https://itunes.apple.com/app/authy/id494168017',
- ),
- array(
- 'text' => __( 'iOS: Google Authenticator', 'google-authenticator' ),
- 'link' => 'https://itunes.apple.com/app/google-authenticator/id388497605',
- ),
- array(
- 'text' => __( 'Android: Authy', 'google-authenticator' ),
- 'link' => 'https://play.google.com/store/apps/details?id=com.authy.authy',
- ),
- array(
- 'text' => __( 'Android: Google Authenticator', 'google-authenticator' ),
- 'link' => 'https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2',
- ),
- array(
- 'text' => __( 'Windows Phone', 'google-authenticator' ),
- 'link' => 'https://www.microsoft.com/store/p/authenticator/9nblggh08h54',
- ),
- array(
- 'text' => __( 'Chrome Browser', 'google-authenticator' ),
- 'link' => 'https://chrome.google.com/webstore/detail/authy-chrome-extension/fhgenkpocbhhddlgkjnfghpjanffonno',
- ),
- array(
- 'text' => __( 'Desktop', 'google-authenticator' ),
- 'link' => 'https://authy.com/download/',
- ),
-
- );
-
- ?>
- <div class="wrap">
- <h1><?php esc_html_e( 'Google Authenticator Settings', 'google-authenticator' ); ?></h1>
- <?php if (is_wp_error( $error ) ): ?>
- <div class="error notice"><p><?php esc_html_e( $error->get_error_message() ); ?></p></div>
- <?php endif; ?>
- <p><?php echo esc_html__( "If you haven't already done so, please install the Authy or Google Authenticator app on your mobile device from the App Store:", 'google-authenticator' ); ?></p>
- <ul>
- <?php foreach( $app_links as $app_link ): ?>
- <li><a href="<?php echo esc_url( $app_link[ 'link' ] ); ?>"><?php echo esc_html( $app_link[ 'text' ] ); ?></a></li>
- <?php endforeach; ?>
- </ul>
- <p><?php echo esc_html__( 'The easiest way to enable your account is to add an account by scanning the QR code using the app.', 'google-authenticator' ); ?></p>
- <p>
- <?php echo esc_html__( "An account can also be added by typing in the secret. After you've added your account to the App, please type the code you see on the screen into the Authenticator Code field and press the Verify Authenticator Code button.", 'google-authenticator' ); ?>
- </p>
- <p>
- <?php echo esc_html__( 'If the account setup was successful, you will be logged out, and will need to login again using your Username, Password and Authenticator code generated using the App on your mobile device.', 'google-authenticator' ); ?>
- </p>
- <form method="post">
- <?php $this->profile_personal_options( array(
- 'show_active' => false,
- 'show_relaxed_mode' => false,
- 'show_description' => false,
- 'show_secret_qr' => true,
- 'show_secret_buttons' => false,
- 'show_authenticator_code' => true,
- 'show_app_password' => false,
- )); ?>
- </form>
- </div>
- <?php
-}
-
-/**
- * Save site / network wide settings
- * @param $is_network
- */
-function save_submitted_admin_setup_page( $is_network ) {
- $nonce = filter_input( INPUT_POST, 'googleauthenticator', FILTER_SANITIZE_STRING );
- if ( wp_verify_nonce( $nonce, 'googleauthenticator' ) ) {
- if ( $is_network ) {
- $network_settings_only = array_key_exists( 'network_settings_only', $_POST );
- if ( current_user_can( 'manage_network_options' ) ) {
- update_site_option( 'googleauthenticator_network_only', $network_settings_only );
- }
- }
- $two_screen_mfa = array_key_exists( 'two_screen_approach', $_POST ) && 'true' === $_POST[ 'two_screen_approach' ];
- if ( is_multisite() && $is_network ) {
- if ( current_user_can( 'manage_network_options' ) ) {
- update_site_option( 'googleauthenticator_two_screen_signin', $two_screen_mfa );
- }
- } elseif ( ! $is_network ) {
- if ( current_user_can( 'manage_options' ) ) {
- update_option( 'googleauthenticator_two_screen_signin', $two_screen_mfa );
- }
- }
- $roles = isset( $_POST['roles'] ) ? (array) $_POST['roles'] : array();
- $roles = array_map( 'sanitize_text_field', $roles );
-
- if ( $is_network ) {
- if ( current_user_can( 'manage_network_options' ) ) {
- update_site_option( 'googleauthenticator_mandatory_mfa_roles', $roles );
- }
- } else {
- if ( current_user_can( 'manage_options' ) ) {
- update_option( 'googleauthenticator_mandatory_mfa_roles', $roles );
- }
- }
- return true;
- }
-}
-
-/**
- * Callback function to render the google authenticator setup page
- */
-function common_admin_setup_page( $is_network = false ) {
- if ( $is_network ) {
- $site_ids = get_sites( 'fields=ids' );
- $roles = get_editable_roles();
- foreach( $site_ids as $site_id ) {
- switch_to_blog( $site_id );
- $roles = array_merge( $roles, get_editable_roles() );
- restore_current_blog();
- }
- $edit_enabled = true;
- } else {
- $roles = get_editable_roles();
- $edit_enabled = is_multisite() ? boolval( get_site_option( 'googleauthenticator_network_only') ) : true;
- }
- $is_updated = $this->save_submitted_admin_setup_page( $is_network );
- ?>
- <div class="wrap">
- <h1><?php esc_html_e( 'Google Authenticator Settings', 'google-authenticator' ); ?></h1>
- <?php if ( $is_updated ): ?>
- <?php if ( $is_network ): ?>
- <div class="notice notice-success is-dismissible"><p><?php esc_html_e( 'Successfullly saved your settings for the network', 'google-authenticator' ); ?></p></div>
- <?php else: ?>
- <div class="notice notice-success is-dismissible"><p><?php esc_html_e( 'Successfullly saved your settings for the site', 'google-authenticator' ); ?></p></div>
- <?php endif; ?>
- <?php endif; ?>
- <form method="post">
- <?php if ( $is_network ): ?>
- <h2><?php esc_html_e( 'Network Settings', 'google-authenticator' ); ?></h2>
- <p>
- <label>
- <input name="network_settings_only" type="checkbox" value="true" <?php checked( get_site_option( 'googleauthenticator_network_only' ) ); ?>>
- <?php esc_html_e( 'Only use network-wide settings, ignoring site settings.', 'google-authenticator' ); ?>
- </label>
- </p>
- <?php endif; ?>
- <?php if ( is_multisite() && $is_network || ! is_multisite() ): ?>
- <?php $two_screen_mfa = is_multisite() ? get_site_option( 'googleauthenticator_two_screen_signin' ) : get_option( 'googleauthenticator_two_screen_signin' ); ?>
- <h2><?php esc_html_e( 'Two Screen Signin', 'google-authenticator' ); ?></h2>
- <p>
- <label>
- <input name="two_screen_approach" type="checkbox" value="true" <?php checked( $two_screen_mfa ); ?>>
- <?php esc_html_e( 'Ask for authenticator code on secondary login screen', 'google-authenticator' ); ?>
- </label>
- </p>
- <?php endif; ?>
- <h2><?php esc_html_e( 'Roles requiring Google Authenticator Enabled', 'google-authenticator' ); ?></h2>
- <?php foreach ($roles as $role_key => $role) {
- $this->show_role_checkbox( $role_key, $role, $is_network );
- }
- if ( $edit_enabled ) {
- wp_nonce_field( 'googleauthenticator', 'googleauthenticator' );
- submit_button();
- } else {
- esc_html_e( 'Network-wide settings in effect, only a super admin can modify them.', 'google-authenticator' );
- if ( current_user_can( 'manage_network' ) ) :?>
- <a href="<?php echo network_admin_url( 'settings.php?page=google_authenticator' ) ?>"><?php esc_html_e( 'Change network wide Google Authenticator settings', 'google-authenticator' ); ?></a>
- <?php endif;
- }
- ?>
-
- </form>
- </div>
- <?php
-}
-
-/**
- * Render a checkbox for a role
- * @param $role_key
- * @param $role
- * @param $is_network
- */
-function show_role_checkbox( $role_key, $role, $is_network ) {
- $network_roles = get_site_option( 'googleauthenticator_mandatory_mfa_roles', array() );
- $network_only = is_multisite() && boolval( get_site_option( 'googleauthenticator_network_only' ) );
- $roles = get_option( 'googleauthenticator_mandatory_mfa_roles', array() );
- if ( $network_only ) {
- $checked = in_array( $role_key, $network_roles );
- } else {
- $checked = in_array( $role_key, array_merge( $roles, $network_roles ) );
- }
-
- /**
- * Criteria under which permission field can be readonly.
- * 1. Site must be a multisite AND
- * Either
- * a. googleauthenticator_network_only network option is set via /wp-admin/network/settings.php?page=google_authenticator
- *
- * OR
- * b. the network option for this role is set via /wp-admin/network/settings.php?page=google_authenticator
- */
- $readonly = is_multisite() && ( ( ! $is_network && $network_only ) || ( ! $is_network && in_array( $role_key, $network_roles ) && ! in_array( $role_key, $roles ) ) );
- $readonly_label = '';
-
- if ( $readonly ) {
- if ( current_user_can( 'manage_network' ) ) {
- $readonly_label = __( "Sorry, you can't disable checks for this role as it's enabled at the network level.", 'google-authenticator' );
- } else {
- $readonly_label = sprintf( __( 'Sorry, this role is enabled at the network level and can only be disabled via the <a href="%s">network settings</a>', 'google-authenticator' ), network_admin_url( 'settings.php?page=google_authenticator' ) );
- }
- }
-
- $readonly = $readonly ? ' readonly="readonly"' : '';
- ?>
- <p><label><input name="roles[]" type="checkbox"<?php echo esc_html( $readonly ) . checked( $checked, true, false ); ?>value="<?php esc_attr_e( $role_key ); ?>"><strong><?php esc_html_e( $role[ 'name' ] ); ?></strong></label> <?php echo $readonly_label; ?></p>
- <?php
-}
-
-/**
- * Admin setup screen
- */
-function admin_setup_page() {
- $this->common_admin_setup_page();
-
-}
-
-/**
- * Network admin setup screen
- */
-function network_admin_setup_page() {
- $this->common_admin_setup_page( true );
-}
-/**
- * Add verification code field to login form.
- */
-function loginform() {
- echo "\t<p>\n";
- echo "\t\t<label title=\"".__('If you don\'t have Google Authenticator enabled for your WordPress account, leave this field empty.','google-authenticator')."\">".__('Google Authenticator code','google-authenticator')."<span id=\"google-auth-info\"></span><br />\n";
- echo "\t\t<input type=\"text\" name=\"googleotp\" id=\"googleotp\" class=\"input\" value=\"\" size=\"20\" style=\"ime-mode: inactive;\" autocomplete=\"off\" /></label>\n";
- echo "\t</p>\n";
-}
-
-/**
- * Disable autocomplete on Google Authenticator code input field.
- */
-function loginfooter() {
- echo "\n<script type=\"text/javascript\">\n";
- echo "\ttry{\n";
- echo "\t\tdocument.getElementById('user_email').setAttribute('autocomplete','off');\n";
- echo "\t} catch(e){}\n";
- echo "</script>\n";
-}
-
-/**
- * Login form handling.
- * Check Google Authenticator verification code, if user has been setup to do so.
- * @param wordpressuser / WP_Error
- * @return user/loginstatus
- */
-function check_otp( $user, $username = '', $password = '' ) {
- // Store result of loginprocess, so far.
- $userstate = $user;
-
- // Get information on user, we need this in case an app password has been enabled,
- // since the $user var only contain an error at this point in the login flow.
- if ( get_user_by( 'email', $username ) === false ) {
- $user = get_user_by( 'login', $username );
- } else {
- $user = get_user_by( 'email', $username );
- }
-
- // Does the user have the Google Authenticator enabled ?
- if ( isset( $user->ID ) && trim(get_user_option( 'googleauthenticator_enabled', $user->ID ) ) == 'enabled' ) {
-
- // Get the users secret
- $GA_secret = trim( get_user_option( 'googleauthenticator_secret', $user->ID ) );
-
- // Figure out if user is using relaxed mode ?
- $GA_relaxedmode = trim( get_user_option( 'googleauthenticator_relaxedmode', $user->ID ) );
-
- // Get the verification code entered by the user trying to login
- if ( !empty( $_POST['googleotp'] )) { // Prevent PHP notices when using app password login
- $otp = trim( $_POST[ 'googleotp' ] );
- } else {
- $otp = '';
- }
- // When was the last successful login performed ?
- $lasttimeslot = trim( get_user_option( 'googleauthenticator_lasttimeslot', $user->ID ) );
- // Valid code ?
- if ( $timeslot = $this->verify( $GA_secret, $otp, $GA_relaxedmode, $lasttimeslot ) ) {
- // Store the timeslot in which login was successful.
- update_user_option( $user->ID, 'googleauthenticator_lasttimeslot', $timeslot, true );
- return $userstate;
- } else {
- // No, lets see if an app password is enabled, and this is an XMLRPC / APP login ?
- if ( trim( get_user_option( 'googleauthenticator_pwdenabled', $user->ID ) ) == 'enabled' && ( defined('XMLRPC_REQUEST') || defined('APP_REQUEST') ) ) {
- $GA_passwords = json_decode( get_user_option( 'googleauthenticator_passwords', $user->ID ) );
- $passwordhash = trim($GA_passwords->{'password'} );
- $usersha1 = sha1( strtoupper( str_replace( ' ', '', $password ) ) );
- if ( $passwordhash == $usersha1 ) { // ToDo: Remove after some time when users have migrated to new format
- return new WP_User( $user->ID );
- // Try the new version based on thee wp_hash_password function
- } elseif (wp_check_password( strtoupper( str_replace( ' ', '', $password ) ), $passwordhash)) {
- return new WP_User( $user->ID );
- } else {
- // Wrong XMLRPC/APP password !
- return new WP_Error( 'invalid_google_authenticator_password', __( '<strong>ERROR</strong>: The Google Authenticator password is incorrect.', 'google-authenticator' ) );
- }
- } else {
- if ( ! $this->is_two_screen_signin_enabled() ) {
- return new WP_Error( 'invalid_google_authenticator_token', __( '<strong>ERROR</strong>: The Google Authenticator code is incorrect or has expired.', 'google-authenticator' ) );
- } else {
- wp_logout();
- $this->secondary_login_screen();
- exit;
- }
- }
- }
- }
- // Google Authenticator isn't enabled for this account,
- // just resume normal authentication.
- return $userstate;
-}
-
-function secondary_login_screen() {
- $redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : admin_url();
- login_header( esc_html__('Secondary Login Screen', 'google-authenticator' ) );
- if ( array_key_exists( 'googleotp', $_REQUEST ) ) {
- if ( 0 === strlen( $_REQUEST[ 'googleotp'] ) ) {
- $error_message = __( '<strong>ERROR</strong>: The Google Authenticator code is missing.', 'google-authenticator' );
- } else {
- $error_message = __( '<strong>ERROR</strong>: The Google Authenticator code is incorrect or has expired.', 'google-authenticator' );
- }
- echo '<div id="login_error">' . $error_message . '</div>';
- }?>
- <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
- <input type="hidden" name="log" value="<?php echo esc_attr( $_REQUEST['log'] ); ?>" />
- <input type="hidden" name="pwd" value="<?php echo esc_attr( $_REQUEST['pwd'] ); ?>" />
- <input type="hidden" name="wp-submit" value="<?php echo esc_attr( $_REQUEST['wp-submit'] ); ?>" />
- <?php if ( array_key_exists( 'rememberme', $_REQUEST ) && 'forever' === $_REQUEST[ 'rememberme']): ?>
- <input name="rememberme" type="hidden" id="rememberme" value="forever" />
- <?php endif; ?>
- <?php $this->loginform(); ?>
- <p><?php esc_html_e( 'Please enter the Google Authenticator code using the app on your device.', 'google-authenticator' ); ?></p>
- <p class="submit">
- <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Log In'); ?>" />
- <input type="hidden" name="redirect_to" value="<?php echo esc_attr($redirect_to); ?>" />
- <input type="hidden" name="testcookie" value="1" />
- </p>
- </form>
- <?php
- login_footer();
-}
-
-
-/**
- * Extend personal profile page with Google Authenticator settings.
- */
-function profile_personal_options( $args = array() ) {
- $defaults = array(
- 'show_active' => true,
- 'show_relaxed_mode' => true,
- 'show_description' => true,
- 'show_secret_qr' => false,
- 'show_secret_buttons' => true,
- 'show_authenticator_code' => false,
- 'show_app_password' => true,
- );
-
- $args = wp_parse_args( $args, $defaults );
-
- $user = wp_get_current_user();
- $user_id = $user->ID;
-
- // If editing of Google Authenticator settings has been disabled, just return
- $GA_hidefromuser = trim( get_user_option( 'googleauthenticator_hidefromuser', $user_id ) );
- if ( $GA_hidefromuser == 'enabled') return;
-
- $GA_secret = trim( get_user_option( 'googleauthenticator_secret', $user_id ) );
- $GA_enabled = trim( get_user_option( 'googleauthenticator_enabled', $user_id ) );
- $GA_relaxedmode = trim( get_user_option( 'googleauthenticator_relaxedmode', $user_id ) );
- $GA_description = trim( get_user_option( 'googleauthenticator_description', $user_id ) );
- $GA_pwdenabled = trim( get_user_option( 'googleauthenticator_pwdenabled', $user_id ) );
- $GA_password = trim( get_user_option( 'googleauthenticator_passwords', $user_id ) );
-
- // We dont store the generated app password in cleartext so there is no point in trying
- // to show the user anything except from the fact that a password exists.
- if ( $GA_password != '' ) {
- $GA_password = "XXXX XXXX XXXX XXXX";
- }
-
- // In case the user has no secret ready (new install), we create one. or use the one they just posted
- if ( '' == $GA_secret ) {
- $GA_secret = array_key_exists( 'GA_secret', $_REQUEST ) ? sanitize_text_field( $_REQUEST[ 'GA_secret' ] ) : $this->create_secret();
- }
-
- if ( '' == $GA_description ) {
- // Super admins and users with accounts on more than one site get the network name as the helpful name,
- // everyone else gets the site that they're on
- if ( is_multisite() && ( 1 < count( get_blogs_of_user( $user_id ) || is_super_admin() ) ) ) {
- $GA_description = sanitize_text_field( get_blog_details( get_network()->id )->blogname );
- } else {
- $GA_description = sanitize_text_field( get_bloginfo( 'name' ) );
- }
- }
-
- echo "<h3>".__( 'Google Authenticator Settings', 'google-authenticator' )."</h3>\n";
-
- echo "<table class=\"form-table\">\n";
- echo "<tbody>\n";
-
- if ( $args['show_active'] ) {
- echo "<tr>\n";
- echo "<th scope=\"row\">".__( 'Active', 'google-authenticator' )."</th>\n";
- echo "<td>\n";
- echo "<input name=\"GA_enabled\" id=\"GA_enabled\" class=\"tog\" type=\"checkbox\"" . checked( $GA_enabled, 'enabled', false ) . "/>\n";
- echo "</td>\n";
- echo "</tr>\n";
- }
-
- if ( $args['show_relaxed_mode'] ) {
- echo "<tr>\n";
- echo "<th scope=\"row\">" . __( 'Relaxed mode', 'google-authenticator' ) . "</th>\n";
- echo "<td>\n";
- echo "<input name=\"GA_relaxedmode\" id=\"GA_relaxedmode\" class=\"tog\" type=\"checkbox\"" . checked( $GA_relaxedmode, 'enabled', false ) . "/><span class=\"description\">" . __( ' Relaxed mode allows for more time drifting on your phone clock (&#177;4 min).', 'google-authenticator' ) . "</span>\n";
- echo "</td>\n";
- echo "</tr>\n";
- }
-
- $show_description_style = $args['show_description'] ? '' : 'display:none';
- echo "<tr style=\"{$show_description_style}\">\n";
- echo "<th><label for=\"GA_description\">" . esc_html__( 'Description', 'google-authenticator' ) . "</label></th>\n";
- echo "<td><input name=\"GA_description\" id=\"GA_description\" value=\"{$GA_description}\" type=\"text\" size=\"25\" /><span class=\"description\">" . __( ' Description that you\'ll see in the Google Authenticator app on your phone.', 'google-authenticator' ) . "</span><br /></td>\n";
- echo "</tr>\n";
-
- echo "<tr>\n";
- echo "<th><label for=\"GA_secret\">".__('Secret','google-authenticator')."</label></th>\n";
- echo "<td>\n";
- echo "<input name=\"GA_secret\" id=\"GA_secret\" value=\"" . esc_attr( $GA_secret) . "\" readonly=\"readonly\" type=\"text\" size=\"25\" />";
- if ( $args['show_secret_buttons']) {
- echo "<input name=\"GA_newsecret\" id=\"GA_newsecret\" value=\"".__("Create new secret",'google-authenticator')."\" type=\"button\" class=\"button\" />";
- echo "<input name=\"show_qr\" id=\"show_qr\" value=\"".__("Show/Hide QR code",'google-authenticator')."\" type=\"button\" class=\"button\" onclick=\"ShowOrHideQRCode();\" />";
- }
- echo "</td>\n";
- echo "</tr>\n";
-
- echo "<tr>\n";
- echo "<th></th>\n";
-
- $qr_style = $args['show_secret_qr'] ? '' : 'display: none';
- echo "<td><div id=\"GA_QR_INFO\" style=\"{$qr_style}\" >";
- echo "<div id=\"GA_QRCODE\"/></div>";
-
- echo '<span class="description"><br/> ' . __( 'Scan this with the Google Authenticator app.', 'google-authenticator' ) . '</span>';
- echo "</div></td>\n";
- echo "</tr>\n";
- if ( $args['show_secret_qr']) : ?>
- <script>
- var qrcode="otpauth://totp/WordPress:"+escape(jQuery('#GA_description').val())+"?secret="+jQuery('#GA_secret').val()+"&issuer=WordPress";
- jQuery('#GA_QRCODE').qrcode(qrcode);
- </script>
- <?php endif;
-
- if ( $args['show_app_password']) {
- echo "<tr>\n";
- echo "<th scope=\"row\">".__( 'Enable App password', 'google-authenticator' )."</th>\n";
- echo "<td>\n";
- echo "<input name=\"GA_pwdenabled\" id=\"GA_pwdenabled\" class=\"tog\" type=\"checkbox\"" . checked( $GA_pwdenabled, 'enabled', false ) . "/><span class=\"description\">".__(' Enabling an App password will decrease your overall login security.','google-authenticator')."</span>\n";
- echo "</td>\n";
- echo "</tr>\n";
-
- echo "<tr>\n";
- echo "<th></th>\n";
- echo "<td>\n";
- echo "<input name=\"GA_password\" id=\"GA_password\" readonly=\"readonly\" value=\"".$GA_password."\" type=\"text\" size=\"25\" />";
- echo "<input name=\"GA_createpassword\" id=\"GA_createpassword\" value=\"".__("Create new password",'google-authenticator')."\" type=\"button\" class=\"button\" />";
- echo "<span class=\"description\" id=\"GA_passworddesc\"> ".__(' Password is not stored in cleartext, this is your only chance to see it.','google-authenticator')."</span>\n";
- echo "</td>\n";
- echo "</tr>\n";
- }
-
-
- if ( $args['show_authenticator_code']) {
- echo "<tr>\n";
- echo "<th><label for=\"GA_otp_code\">" . __( 'Authenticator Code', 'google-authenticator' ) . "</label></th>\n";
- echo "<td><input name=\"GA_otp_code\" id=\"GA_otp_code\" type=\"text\" size=\"25\" /><span class=\"description\">" . __( 'After adding the site to your google authy account, add your authenticator code here.', 'google-authenticator' ) . "</span><br /></td>\n";
- echo "</tr>\n";
- }
-
- echo "</tbody></table>\n";
- if ( $args['show_authenticator_code']) {
- submit_button( esc_html__( 'Verify Authenticator Code', 'google-authenticator' ) );
- }
- echo "<script type=\"text/javascript\">\n";
- echo "var GAnonce='".wp_create_nonce('GoogleAuthenticatoraction')."';\n";
-
- echo <<<ENDOFJS
- //Create new secret and display it
- jQuery('#GA_newsecret').bind('click', function() {
- // Remove existing QRCode
- jQuery('#GA_QRCODE').html("");
- var data=new Object();
- data['action'] = 'GoogleAuthenticator_action';
- data['nonce'] = GAnonce;
- jQuery.post(ajaxurl, data, function(response) {
- jQuery('#GA_secret').val(response['new-secret']);
- var qrcode="otpauth://totp/WordPress:"+escape(jQuery('#GA_description').val())+"?secret="+jQuery('#GA_secret').val()+"&issuer=WordPress";
- jQuery('#GA_QRCODE').qrcode(qrcode);
- jQuery('#GA_QR_INFO').show('slow');
- });
- });
-
- // If the user starts modifying the description, hide the qrcode
- jQuery('#GA_description').bind('focus blur change keyup', function() {
- // Only remove QR Code if it's visible
- if (jQuery('#GA_QR_INFO').is(':visible')) {
- jQuery('#GA_QR_INFO').hide('slow');
- jQuery('#GA_QRCODE').html("");
- }
- });
-
- // Create new app password
- jQuery('#GA_createpassword').bind('click',function() {
- var data=new Object();
- data['action'] = 'GoogleAuthenticator_action';
- data['nonce'] = GAnonce;
- data['save'] = 1;
- jQuery.post(ajaxurl, data, function(response) {
- jQuery('#GA_password').val(response['new-secret'].match(new RegExp(".{0,4}","g")).join(' '));
- jQuery('#GA_passworddesc').show();
- });
- });
-
- jQuery('#GA_enabled').bind('change',function() {
- GoogleAuthenticator_apppasswordcontrol();
- });
-
- jQuery(document).ready(function() {
- jQuery('#GA_passworddesc').hide();
- GoogleAuthenticator_apppasswordcontrol();
- });
-
- function GoogleAuthenticator_apppasswordcontrol() {
- if (jQuery('#GA_enabled').is(':checked')) {
- jQuery('#GA_pwdenabled').removeAttr('disabled');
- jQuery('#GA_createpassword').removeAttr('disabled');
- } else {
- jQuery('#GA_pwdenabled').removeAttr('checked')
- jQuery('#GA_pwdenabled').attr('disabled', true);
- jQuery('#GA_createpassword').attr('disabled', true);
- }
- }
-
- function ShowOrHideQRCode() {
- if (jQuery('#GA_QR_INFO').is(':hidden')) {
- var qrcode="otpauth://totp/WordPress:"+escape(jQuery('#GA_description').val())+"?secret="+jQuery('#GA_secret').val()+"&issuer=WordPress";
- jQuery('#GA_QRCODE').qrcode(qrcode);
- jQuery('#GA_QR_INFO').show('slow');
- } else {
- jQuery('#GA_QR_INFO').hide('slow');
- jQuery('#GA_QRCODE').html("");
- }
- }
-</script>
-ENDOFJS;
-}
-
-/**
- * Form handling of Google Authenticator options added to personal profile page (user editing his own profile)
- */
-function personal_options_update() {
- global $user_id;
-
- // If editing of Google Authenticator settings has been disabled, just return
- $GA_hidefromuser = trim( get_user_option( 'googleauthenticator_hidefromuser', $user_id ) );
- if ( $GA_hidefromuser == 'enabled') return;
-
-
- $GA_enabled = ! empty( $_POST['GA_enabled'] );
- $GA_description = trim( sanitize_text_field($_POST['GA_description'] ) );
- $GA_relaxedmode = ! empty( $_POST['GA_relaxedmode'] );
- $GA_secret = trim( $_POST['GA_secret'] );
- $GA_pwdenabled = ! empty( $_POST['GA_pwdenabled'] );
- $GA_password = str_replace(' ', '', trim( $_POST['GA_password'] ) );
-
- if ( ! $GA_enabled ) {
- $GA_enabled = 'disabled';
- } else {
- $GA_enabled = 'enabled';
- }
-
- if ( ! $GA_relaxedmode ) {
- $GA_relaxedmode = 'disabled';
- } else {
- $GA_relaxedmode = 'enabled';
- }
-
-
- if ( ! $GA_pwdenabled ) {
- $GA_pwdenabled = 'disabled';
- } else {
- $GA_pwdenabled = 'enabled';
- }
-
- // Only store password if a new one has been generated.
- if (strtoupper($GA_password) != 'XXXXXXXXXXXXXXXX' ) {
- // Store the password in a format that can be expanded easily later on if needed.
- $GA_password = array( 'appname' => 'Default', 'password' => wp_hash_password( $GA_password ) );
- update_user_option( $user_id, 'googleauthenticator_passwords', json_encode( $GA_password ), true );
- }
-
- update_user_option( $user_id, 'googleauthenticator_enabled', $GA_enabled, true );
- update_user_option( $user_id, 'googleauthenticator_description', $GA_description, true );
- update_user_option( $user_id, 'googleauthenticator_relaxedmode', $GA_relaxedmode, true );
- update_user_option( $user_id, 'googleauthenticator_secret', $GA_secret, true );
- update_user_option( $user_id, 'googleauthenticator_pwdenabled', $GA_pwdenabled, true );
-
-}
-
-/**
- * Extend profile page with ability to enable/disable Google Authenticator authentication requirement.
- * Used by an administrator when editing other users.
- */
-function edit_user_profile() {
- global $user_id;
- $GA_enabled = trim( get_user_option( 'googleauthenticator_enabled', $user_id ) );
- $GA_hidefromuser = trim( get_user_option( 'googleauthenticator_hidefromuser', $user_id ) );
- echo "<h3>".__('Google Authenticator Settings','google-authenticator')."</h3>\n";
- echo "<table class=\"form-table\">\n";
- echo "<tbody>\n";
-
- echo "<tr>\n";
- echo "<th scope=\"row\">".__('Hide settings from user','google-authenticator')."</th>\n";
- echo "<td>\n";
- echo "<div><input name=\"GA_hidefromuser\" id=\"GA_hidefromuser\" class=\"tog\" type=\"checkbox\"" . checked( $GA_hidefromuser, 'enabled', false ) . "/>\n";
- echo "</td>\n";
- echo "</tr>\n";
-
- echo "<tr>\n";
- echo "<th scope=\"row\">".__('Active','google-authenticator')."</th>\n";
- echo "<td>\n";
- echo "<div><input name=\"GA_enabled\" id=\"GA_enabled\" class=\"tog\" type=\"checkbox\"" . checked( $GA_enabled, 'enabled', false ) . "/>\n";
- echo "</td>\n";
- echo "</tr>\n";
-
- echo "</tbody>\n";
- echo "</table>\n";
-}
-
-/**
- * Form handling of Google Authenticator options on edit profile page (admin user editing other user)
- */
-function edit_user_profile_update() {
- global $user_id;
-
- $GA_enabled = ! empty( $_POST['GA_enabled'] );
- $GA_hidefromuser = ! empty( $_POST['GA_hidefromuser'] );
-
- if ( ! $GA_enabled ) {
- $GA_enabled = 'disabled';
- } else {
- $GA_enabled = 'enabled';
- }
-
- if ( ! $GA_hidefromuser ) {
- $GA_hidefromuser = 'disabled';
- } else {
- $GA_hidefromuser = 'enabled';
- }
-
- update_user_option( $user_id, 'googleauthenticator_enabled', $GA_enabled, true );
- update_user_option( $user_id, 'googleauthenticator_hidefromuser', $GA_hidefromuser, true );
-
-}
-
-
-/**
-* AJAX callback function used to generate new secret
-*/
-function ajax_callback() {
- global $user_id;
-
- // Some AJAX security.
- check_ajax_referer( 'GoogleAuthenticatoraction', 'nonce' );
-
- // Create new secret.
- $secret = $this->create_secret();
-
- $result = array( 'new-secret' => $secret );
- header( 'Content-Type: application/json' );
- echo json_encode( $result );
-
- // die() is required to return a proper result
- die();
-}
-
-} // end class
-
-$google_authenticator = new GoogleAuthenticator;
-
diff --git a/plugins/google-authenticator/jquery.qrcode.min.js b/plugins/google-authenticator/jquery.qrcode.min.js
deleted file mode 100644
index fe9680e6..00000000
--- a/plugins/google-authenticator/jquery.qrcode.min.js
+++ /dev/null
@@ -1,28 +0,0 @@
-(function(r){r.fn.qrcode=function(h){var s;function u(a){this.mode=s;this.data=a}function o(a,c){this.typeNumber=a;this.errorCorrectLevel=c;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]}function q(a,c){if(void 0==a.length)throw Error(a.length+"/"+c);for(var d=0;d<a.length&&0==a[d];)d++;this.num=Array(a.length-d+c);for(var b=0;b<a.length-d;b++)this.num[b]=a[b+d]}function p(a,c){this.totalCount=a;this.dataCount=c}function t(){this.buffer=[];this.length=0}u.prototype={getLength:function(){return this.data.length},
-write:function(a){for(var c=0;c<this.data.length;c++)a.put(this.data.charCodeAt(c),8)}};o.prototype={addData:function(a){this.dataList.push(new u(a));this.dataCache=null},isDark:function(a,c){if(0>a||this.moduleCount<=a||0>c||this.moduleCount<=c)throw Error(a+","+c);return this.modules[a][c]},getModuleCount:function(){return this.moduleCount},make:function(){if(1>this.typeNumber){for(var a=1,a=1;40>a;a++){for(var c=p.getRSBlocks(a,this.errorCorrectLevel),d=new t,b=0,e=0;e<c.length;e++)b+=c[e].dataCount;
-for(e=0;e<this.dataList.length;e++)c=this.dataList[e],d.put(c.mode,4),d.put(c.getLength(),j.getLengthInBits(c.mode,a)),c.write(d);if(d.getLengthInBits()<=8*b)break}this.typeNumber=a}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(a,c){this.moduleCount=4*this.typeNumber+17;this.modules=Array(this.moduleCount);for(var d=0;d<this.moduleCount;d++){this.modules[d]=Array(this.moduleCount);for(var b=0;b<this.moduleCount;b++)this.modules[d][b]=null}this.setupPositionProbePattern(0,0);this.setupPositionProbePattern(this.moduleCount-
-7,0);this.setupPositionProbePattern(0,this.moduleCount-7);this.setupPositionAdjustPattern();this.setupTimingPattern();this.setupTypeInfo(a,c);7<=this.typeNumber&&this.setupTypeNumber(a);null==this.dataCache&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList));this.mapData(this.dataCache,c)},setupPositionProbePattern:function(a,c){for(var d=-1;7>=d;d++)if(!(-1>=a+d||this.moduleCount<=a+d))for(var b=-1;7>=b;b++)-1>=c+b||this.moduleCount<=c+b||(this.modules[a+d][c+b]=
-0<=d&&6>=d&&(0==b||6==b)||0<=b&&6>=b&&(0==d||6==d)||2<=d&&4>=d&&2<=b&&4>=b?!0:!1)},getBestMaskPattern:function(){for(var a=0,c=0,d=0;8>d;d++){this.makeImpl(!0,d);var b=j.getLostPoint(this);if(0==d||a>b)a=b,c=d}return c},createMovieClip:function(a,c,d){a=a.createEmptyMovieClip(c,d);this.make();for(c=0;c<this.modules.length;c++)for(var d=1*c,b=0;b<this.modules[c].length;b++){var e=1*b;this.modules[c][b]&&(a.beginFill(0,100),a.moveTo(e,d),a.lineTo(e+1,d),a.lineTo(e+1,d+1),a.lineTo(e,d+1),a.endFill())}return a},
-setupTimingPattern:function(){for(var a=8;a<this.moduleCount-8;a++)null==this.modules[a][6]&&(this.modules[a][6]=0==a%2);for(a=8;a<this.moduleCount-8;a++)null==this.modules[6][a]&&(this.modules[6][a]=0==a%2)},setupPositionAdjustPattern:function(){for(var a=j.getPatternPosition(this.typeNumber),c=0;c<a.length;c++)for(var d=0;d<a.length;d++){var b=a[c],e=a[d];if(null==this.modules[b][e])for(var f=-2;2>=f;f++)for(var i=-2;2>=i;i++)this.modules[b+f][e+i]=-2==f||2==f||-2==i||2==i||0==f&&0==i?!0:!1}},setupTypeNumber:function(a){for(var c=
-j.getBCHTypeNumber(this.typeNumber),d=0;18>d;d++){var b=!a&&1==(c>>d&1);this.modules[Math.floor(d/3)][d%3+this.moduleCount-8-3]=b}for(d=0;18>d;d++)b=!a&&1==(c>>d&1),this.modules[d%3+this.moduleCount-8-3][Math.floor(d/3)]=b},setupTypeInfo:function(a,c){for(var d=j.getBCHTypeInfo(this.errorCorrectLevel<<3|c),b=0;15>b;b++){var e=!a&&1==(d>>b&1);6>b?this.modules[b][8]=e:8>b?this.modules[b+1][8]=e:this.modules[this.moduleCount-15+b][8]=e}for(b=0;15>b;b++)e=!a&&1==(d>>b&1),8>b?this.modules[8][this.moduleCount-
-b-1]=e:9>b?this.modules[8][15-b-1+1]=e:this.modules[8][15-b-1]=e;this.modules[this.moduleCount-8][8]=!a},mapData:function(a,c){for(var d=-1,b=this.moduleCount-1,e=7,f=0,i=this.moduleCount-1;0<i;i-=2)for(6==i&&i--;;){for(var g=0;2>g;g++)if(null==this.modules[b][i-g]){var n=!1;f<a.length&&(n=1==(a[f]>>>e&1));j.getMask(c,b,i-g)&&(n=!n);this.modules[b][i-g]=n;e--; -1==e&&(f++,e=7)}b+=d;if(0>b||this.moduleCount<=b){b-=d;d=-d;break}}}};o.PAD0=236;o.PAD1=17;o.createData=function(a,c,d){for(var c=p.getRSBlocks(a,
-c),b=new t,e=0;e<d.length;e++){var f=d[e];b.put(f.mode,4);b.put(f.getLength(),j.getLengthInBits(f.mode,a));f.write(b)}for(e=a=0;e<c.length;e++)a+=c[e].dataCount;if(b.getLengthInBits()>8*a)throw Error("code length overflow. ("+b.getLengthInBits()+">"+8*a+")");for(b.getLengthInBits()+4<=8*a&&b.put(0,4);0!=b.getLengthInBits()%8;)b.putBit(!1);for(;!(b.getLengthInBits()>=8*a);){b.put(o.PAD0,8);if(b.getLengthInBits()>=8*a)break;b.put(o.PAD1,8)}return o.createBytes(b,c)};o.createBytes=function(a,c){for(var d=
-0,b=0,e=0,f=Array(c.length),i=Array(c.length),g=0;g<c.length;g++){var n=c[g].dataCount,h=c[g].totalCount-n,b=Math.max(b,n),e=Math.max(e,h);f[g]=Array(n);for(var k=0;k<f[g].length;k++)f[g][k]=255&a.buffer[k+d];d+=n;k=j.getErrorCorrectPolynomial(h);n=(new q(f[g],k.getLength()-1)).mod(k);i[g]=Array(k.getLength()-1);for(k=0;k<i[g].length;k++)h=k+n.getLength()-i[g].length,i[g][k]=0<=h?n.get(h):0}for(k=g=0;k<c.length;k++)g+=c[k].totalCount;d=Array(g);for(k=n=0;k<b;k++)for(g=0;g<c.length;g++)k<f[g].length&&
-(d[n++]=f[g][k]);for(k=0;k<e;k++)for(g=0;g<c.length;g++)k<i[g].length&&(d[n++]=i[g][k]);return d};s=4;for(var j={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,
-78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(a){for(var c=a<<10;0<=j.getBCHDigit(c)-j.getBCHDigit(j.G15);)c^=j.G15<<j.getBCHDigit(c)-j.getBCHDigit(j.G15);return(a<<10|c)^j.G15_MASK},getBCHTypeNumber:function(a){for(var c=a<<12;0<=j.getBCHDigit(c)-
-j.getBCHDigit(j.G18);)c^=j.G18<<j.getBCHDigit(c)-j.getBCHDigit(j.G18);return a<<12|c},getBCHDigit:function(a){for(var c=0;0!=a;)c++,a>>>=1;return c},getPatternPosition:function(a){return j.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,c,d){switch(a){case 0:return 0==(c+d)%2;case 1:return 0==c%2;case 2:return 0==d%3;case 3:return 0==(c+d)%3;case 4:return 0==(Math.floor(c/2)+Math.floor(d/3))%2;case 5:return 0==c*d%2+c*d%3;case 6:return 0==(c*d%2+c*d%3)%2;case 7:return 0==(c*d%3+(c+d)%2)%2;default:throw Error("bad maskPattern:"+
-a);}},getErrorCorrectPolynomial:function(a){for(var c=new q([1],0),d=0;d<a;d++)c=c.multiply(new q([1,l.gexp(d)],0));return c},getLengthInBits:function(a,c){if(1<=c&&10>c)switch(a){case 1:return 10;case 2:return 9;case s:return 8;case 8:return 8;default:throw Error("mode:"+a);}else if(27>c)switch(a){case 1:return 12;case 2:return 11;case s:return 16;case 8:return 10;default:throw Error("mode:"+a);}else if(41>c)switch(a){case 1:return 14;case 2:return 13;case s:return 16;case 8:return 12;default:throw Error("mode:"+
-a);}else throw Error("type:"+c);},getLostPoint:function(a){for(var c=a.getModuleCount(),d=0,b=0;b<c;b++)for(var e=0;e<c;e++){for(var f=0,i=a.isDark(b,e),g=-1;1>=g;g++)if(!(0>b+g||c<=b+g))for(var h=-1;1>=h;h++)0>e+h||c<=e+h||0==g&&0==h||i==a.isDark(b+g,e+h)&&f++;5<f&&(d+=3+f-5)}for(b=0;b<c-1;b++)for(e=0;e<c-1;e++)if(f=0,a.isDark(b,e)&&f++,a.isDark(b+1,e)&&f++,a.isDark(b,e+1)&&f++,a.isDark(b+1,e+1)&&f++,0==f||4==f)d+=3;for(b=0;b<c;b++)for(e=0;e<c-6;e++)a.isDark(b,e)&&!a.isDark(b,e+1)&&a.isDark(b,e+
-2)&&a.isDark(b,e+3)&&a.isDark(b,e+4)&&!a.isDark(b,e+5)&&a.isDark(b,e+6)&&(d+=40);for(e=0;e<c;e++)for(b=0;b<c-6;b++)a.isDark(b,e)&&!a.isDark(b+1,e)&&a.isDark(b+2,e)&&a.isDark(b+3,e)&&a.isDark(b+4,e)&&!a.isDark(b+5,e)&&a.isDark(b+6,e)&&(d+=40);for(e=f=0;e<c;e++)for(b=0;b<c;b++)a.isDark(b,e)&&f++;a=Math.abs(100*f/c/c-50)/5;return d+10*a}},l={glog:function(a){if(1>a)throw Error("glog("+a+")");return l.LOG_TABLE[a]},gexp:function(a){for(;0>a;)a+=255;for(;256<=a;)a-=255;return l.EXP_TABLE[a]},EXP_TABLE:Array(256),
-LOG_TABLE:Array(256)},m=0;8>m;m++)l.EXP_TABLE[m]=1<<m;for(m=8;256>m;m++)l.EXP_TABLE[m]=l.EXP_TABLE[m-4]^l.EXP_TABLE[m-5]^l.EXP_TABLE[m-6]^l.EXP_TABLE[m-8];for(m=0;255>m;m++)l.LOG_TABLE[l.EXP_TABLE[m]]=m;q.prototype={get:function(a){return this.num[a]},getLength:function(){return this.num.length},multiply:function(a){for(var c=Array(this.getLength()+a.getLength()-1),d=0;d<this.getLength();d++)for(var b=0;b<a.getLength();b++)c[d+b]^=l.gexp(l.glog(this.get(d))+l.glog(a.get(b)));return new q(c,0)},mod:function(a){if(0>
-this.getLength()-a.getLength())return this;for(var c=l.glog(this.get(0))-l.glog(a.get(0)),d=Array(this.getLength()),b=0;b<this.getLength();b++)d[b]=this.get(b);for(b=0;b<a.getLength();b++)d[b]^=l.gexp(l.glog(a.get(b))+c);return(new q(d,0)).mod(a)}};p.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],
-[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,
-116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,
-43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,
-3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,
-55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,
-45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];p.getRSBlocks=function(a,c){var d=p.getRsBlockTable(a,c);if(void 0==d)throw Error("bad rs block @ typeNumber:"+a+"/errorCorrectLevel:"+c);for(var b=d.length/3,e=[],f=0;f<b;f++)for(var h=d[3*f+0],g=d[3*f+1],j=d[3*f+2],l=0;l<h;l++)e.push(new p(g,j));return e};p.getRsBlockTable=function(a,c){switch(c){case 1:return p.RS_BLOCK_TABLE[4*(a-1)+0];case 0:return p.RS_BLOCK_TABLE[4*(a-1)+1];case 3:return p.RS_BLOCK_TABLE[4*
-(a-1)+2];case 2:return p.RS_BLOCK_TABLE[4*(a-1)+3]}};t.prototype={get:function(a){return 1==(this.buffer[Math.floor(a/8)]>>>7-a%8&1)},put:function(a,c){for(var d=0;d<c;d++)this.putBit(1==(a>>>c-d-1&1))},getLengthInBits:function(){return this.length},putBit:function(a){var c=Math.floor(this.length/8);this.buffer.length<=c&&this.buffer.push(0);a&&(this.buffer[c]|=128>>>this.length%8);this.length++}};"string"===typeof h&&(h={text:h});h=r.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,
-correctLevel:2,background:"#ffffff",foreground:"#000000"},h);return this.each(function(){var a;if("canvas"==h.render){a=new o(h.typeNumber,h.correctLevel);a.addData(h.text);a.make();var c=document.createElement("canvas");c.width=h.width;c.height=h.height;for(var d=c.getContext("2d"),b=h.width/a.getModuleCount(),e=h.height/a.getModuleCount(),f=0;f<a.getModuleCount();f++)for(var i=0;i<a.getModuleCount();i++){d.fillStyle=a.isDark(f,i)?h.foreground:h.background;var g=Math.ceil((i+1)*b)-Math.floor(i*b),
-j=Math.ceil((f+1)*b)-Math.floor(f*b);d.fillRect(Math.round(i*b),Math.round(f*e),g,j)}}else{a=new o(h.typeNumber,h.correctLevel);a.addData(h.text);a.make();c=r("<table></table>").css("width",h.width+"px").css("height",h.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",h.background);d=h.width/a.getModuleCount();b=h.height/a.getModuleCount();for(e=0;e<a.getModuleCount();e++){f=r("<tr></tr>").css("height",b+"px").appendTo(c);for(i=0;i<a.getModuleCount();i++)r("<td></td>").css("width",
-d+"px").css("background-color",a.isDark(e,i)?h.foreground:h.background).appendTo(f)}}a=c;jQuery(a).appendTo(this)})}})(jQuery);
diff --git a/plugins/google-authenticator/lang/google-authenticator-da_DK.mo b/plugins/google-authenticator/lang/google-authenticator-da_DK.mo
deleted file mode 100644
index d4b4b1fd..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-da_DK.mo
+++ /dev/null
Binary files differ
diff --git a/plugins/google-authenticator/lang/google-authenticator-da_DK.po b/plugins/google-authenticator/lang/google-authenticator-da_DK.po
deleted file mode 100644
index 28fe9911..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-da_DK.po
+++ /dev/null
@@ -1,113 +0,0 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: Google Authenticator\n"
-"POT-Creation-Date: 2014-01-11 08:17+0100\n"
-"PO-Revision-Date: 2014-01-11 08:20+0100\n"
-"Last-Translator: Henrik Schack <henrik@schack.dk>\n"
-"Language-Team: \n"
-"Language: da\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Poedit 1.6.3\n"
-"X-Poedit-Basepath: ..\n"
-"X-Poedit-SourceCharset: UTF-8\n"
-"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
-"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
-"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Poedit-SearchPath-0: .\n"
-
-#: google-authenticator.php:166
-msgid ""
-"If you don't have Google Authenticator enabled for your WordPress account, "
-"leave this field empty."
-msgstr ""
-"Hvis ikke du har aktiveret Google Authenticator for din konto, så lad være "
-"med at skrive noget her."
-
-#: google-authenticator.php:166
-msgid "Google Authenticator code"
-msgstr "Google Authenticator kode"
-
-#: google-authenticator.php:231
-msgid "<strong>ERROR</strong>: The Google Authenticator password is incorrect."
-msgstr "<strong>ERROR</strong>: Google Authenticator kodeordet er forkert."
-
-#: google-authenticator.php:234
-msgid ""
-"<strong>ERROR</strong>: The Google Authenticator code is incorrect or has "
-"expired."
-msgstr ""
-"<strong>ERROR</strong>: Google Authenticator koden er forkert eller udløbet."
-
-#: google-authenticator.php:274
-msgid "WordPressBlog"
-msgstr "WordPressBlog"
-
-#: google-authenticator.php:277 google-authenticator.php:469
-msgid "Google Authenticator Settings"
-msgstr "Google Authenticator indstillinger"
-
-#: google-authenticator.php:282 google-authenticator.php:481
-msgid "Active"
-msgstr "Aktiv"
-
-#: google-authenticator.php:290
-msgid "Relaxed mode"
-msgstr "Afslappet tilstand"
-
-#: google-authenticator.php:292
-msgid ""
-" Relaxed mode allows for more time drifting on your phone clock (&#177;4 "
-"min)."
-msgstr ""
-"Afslappet tilstand tillader mere upræcis tid på din telefon (&#177;4 min)."
-
-#: google-authenticator.php:297
-msgid "Description"
-msgstr "Beskrivelse"
-
-#: google-authenticator.php:298
-msgid ""
-" Description that you'll see in the Google Authenticator app on your phone."
-msgstr "Beskrivelsen du vil se i Google Authenticator app'en på din telefon."
-
-#: google-authenticator.php:302
-msgid "Secret"
-msgstr "Hemmelig kode"
-
-#: google-authenticator.php:305
-msgid "Create new secret"
-msgstr "Opret ny hemmelig kode"
-
-#: google-authenticator.php:306
-msgid "Show/Hide QR code"
-msgstr "Vis/Gem QR kode"
-
-#: google-authenticator.php:315
-msgid "Scan this with the Google Authenticator app."
-msgstr "Scan dette med Google Authenticator app'en."
-
-#: google-authenticator.php:320
-msgid "Enable App password"
-msgstr "Aktiver app kodeord"
-
-#: google-authenticator.php:322
-msgid " Enabling an App password will decrease your overall login security."
-msgstr ""
-"Aktiverer du app kodeords featuren, påvirker det din sikkerhed generelt."
-
-#: google-authenticator.php:330
-msgid "Create new password"
-msgstr "Opret nyt kodeord"
-
-#: google-authenticator.php:331
-msgid ""
-" Password is not stored in cleartext, this is your only chance to see it."
-msgstr ""
-"Kodeordet gemmes ikke i klartekst, dette er din eneste chance for at se det."
-
-#: google-authenticator.php:474
-msgid "Hide settings from user"
-msgstr "Skjul indstillinger for bruger"
diff --git a/plugins/google-authenticator/lang/google-authenticator-de_DE.mo b/plugins/google-authenticator/lang/google-authenticator-de_DE.mo
deleted file mode 100644
index 3ac64c79..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-de_DE.mo
+++ /dev/null
Binary files differ
diff --git a/plugins/google-authenticator/lang/google-authenticator-de_DE.po b/plugins/google-authenticator/lang/google-authenticator-de_DE.po
deleted file mode 100644
index 66afca41..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-de_DE.po
+++ /dev/null
@@ -1,119 +0,0 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: Google Authenticator 0.30\n"
-"Report-Msgid-Bugs-To: http://wordpress.org/tag/google-authenticator\n"
-"POT-Creation-Date: 2011-05-17 19:38:36+00:00\n"
-"PO-Revision-Date: 2011-06-25 16:20+0100\n"
-"Last-Translator: Tobias Bäthge <wordpress@tobias.baethge.com>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Poedit-Language: \n"
-"X-Poedit-Country: \n"
-"X-Poedit-SourceCharset: utf-8\n"
-"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
-"X-Poedit-Basepath: \n"
-"X-Poedit-Bookmarks: \n"
-"X-Poedit-SearchPath-0: .\n"
-"X-Textdomain-Support: yes"
-
-#: google-authenticator.php:118
-#@ google-authenticator
-msgid "Google Authenticator code"
-msgstr "&quot;Google Authenticator&quot;-Code"
-
-#: google-authenticator.php:172
-#: google-authenticator.php:267
-#@ google-authenticator
-msgid "Active"
-msgstr "Aktivieren"
-
-#: google-authenticator.php:184
-#@ google-authenticator
-msgid "Description"
-msgstr "Beschreibung"
-
-#: google-authenticator.php:189
-#@ google-authenticator
-msgid "Secret"
-msgstr "Geheimschlüssel"
-
-#: google-authenticator.php:192
-#@ google-authenticator
-msgid "Create new secret"
-msgstr "Neuen Geheimschlüssel erzeugen"
-
-#: google-authenticator.php:193
-#@ google-authenticator
-msgid "Show/Hide QR code"
-msgstr "QR-Code anzeigen/verstecken"
-
-#. translators: plugin header field 'Name'
-#: google-authenticator.php:0
-#@ google-authenticator
-msgid "Google Authenticator"
-msgstr "Google Authenticator"
-
-#. translators: plugin header field 'PluginURI'
-#: google-authenticator.php:0
-#@ google-authenticator
-msgid "http://henrik.schack.dk/google-authenticator-for-wordpress"
-msgstr "http://henrik.schack.dk/google-authenticator-for-wordpress"
-
-#. translators: plugin header field 'Author'
-#: google-authenticator.php:0
-#@ google-authenticator
-msgid "Henrik Schack"
-msgstr "Henrik Schack"
-
-#. translators: plugin header field 'AuthorURI'
-#: google-authenticator.php:0
-#@ google-authenticator
-msgid "http://henrik.schack.dk/"
-msgstr "http://henrik.schack.dk/"
-
-#. translators: plugin header field 'Version'
-#: google-authenticator.php:0
-#@ google-authenticator
-msgid "0.30"
-msgstr "0.30"
-
-#: google-authenticator.php:143
-#@ google-authenticator
-msgid "<strong>ERROR</strong>: The Google Authenticator code is incorrect or has expired."
-msgstr "<strong>FEHLER</strong>: Der eingegebene &quot;Google Authenticator&quot;-Code ist falsch oder abgelaufen."
-
-#: google-authenticator.php:165
-#@ google-authenticator
-msgid "WordPress Blog"
-msgstr "WordPress-Blog"
-
-#: google-authenticator.php:167
-#: google-authenticator.php:263
-#@ google-authenticator
-msgid "Google Authenticator Settings"
-msgstr "Einstellungen zu Google Authenticator"
-
-#: google-authenticator.php:201
-#@ google-authenticator
-msgid "Scan this with the Google Authenticator app."
-msgstr "Scanne diesen QR-Code mit der &quot;Google Authenticator&quot;-App deines Smartphones."
-
-#: google-authenticator.php:118
-#@ google-authenticator
-msgid "If you don't have Google Authenticator enabled for your WordPress account, leave this field empty."
-msgstr "Falls die Nutzung von &quot;Google Authenticator&quot; für dieses WordPress-Konto nicht aktiviert ist, dieses Feld leer lassen."
-
-#: google-authenticator.php:185
-#@ google-authenticator
-msgid " Description that you'll see in the Google Authenticator app on your phone."
-msgstr "Beschreibung, die in der &quot;Google Authenticator&quot;-App auf dem Smartphone angezeigt wird."
-
-#. translators: plugin header field 'Description'
-#: google-authenticator.php:0
-#@ google-authenticator
-msgid "Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry app as One Time Password generator."
-msgstr "Zwei-Faktor-Authentifizierung für WordPress mit der &quot;Google Authenticator&quot;-App für Android/iPhone/Blackberry"
-
diff --git a/plugins/google-authenticator/lang/google-authenticator-es_ES.mo b/plugins/google-authenticator/lang/google-authenticator-es_ES.mo
deleted file mode 100644
index 5bf1304b..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-es_ES.mo
+++ /dev/null
Binary files differ
diff --git a/plugins/google-authenticator/lang/google-authenticator-es_ES.po b/plugins/google-authenticator/lang/google-authenticator-es_ES.po
deleted file mode 100644
index ce9ab6aa..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-es_ES.po
+++ /dev/null
@@ -1,131 +0,0 @@
-# Copyright (C) 2010 Google Authenticator
-# This file is distributed under the same license as the Google Authenticator package.
-msgid ""
-msgstr ""
-"Project-Id-Version: Google Authenticator 0.37\n"
-"Report-Msgid-Bugs-To: http://wordpress.org/tag/google-authenticator\n"
-"POT-Creation-Date: 2011-08-21 14:25:45+00:00\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"PO-Revision-Date: 2014-01-11 10:07+0100\n"
-"Last-Translator: \n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"X-Generator: Poedit 1.6.3\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"Language: es_ES\n"
-
-#: google-authenticator.php:131
-msgid ""
-"If you don't have Google Authenticator enabled for your WordPress account, "
-"leave this field empty."
-msgstr ""
-"Si no tiene Google Authenticator habilitado en su cuenta de WordPress, deje "
-"este campo vacío."
-
-#: google-authenticator.php:131
-msgid "Google Authenticator code"
-msgstr "Código Google Authenticator"
-
-#: google-authenticator.php:176
-msgid "<strong>ERROR</strong>: The Google Authenticator password is incorrect."
-msgstr "<strong>ERROR</strong>: El codigo es incorrecto."
-
-#: google-authenticator.php:179
-msgid ""
-"<strong>ERROR</strong>: The Google Authenticator code is incorrect or has "
-"expired."
-msgstr "<strong>ERROR</strong>: El código es incorrecto o caducado."
-
-#: google-authenticator.php:215
-msgid "WordPress Blog"
-msgstr "Blog de WordPress"
-
-#: google-authenticator.php:218 google-authenticator.php:392
-msgid "Google Authenticator Settings"
-msgstr "Opciones Google Authenticator"
-
-#: google-authenticator.php:223 google-authenticator.php:396
-msgid "Active"
-msgstr "Activar"
-
-#: google-authenticator.php:235
-msgid "Relaxed mode"
-msgstr "Modo relajado"
-
-#: google-authenticator.php:237
-msgid ""
-" Relaxed mode allows for more time drifting on your phone clock (&#177;4 "
-"min)."
-msgstr ""
-"El modo relajado permite tener más tiempo de reloj en su teléfono (&#177;4 "
-"min)."
-
-#: google-authenticator.php:242
-msgid "Description"
-msgstr "Descripción"
-
-#: google-authenticator.php:243
-msgid ""
-" Description that you'll see in the Google Authenticator app on your phone."
-msgstr ""
-"Descripción que se verá en la aplicación Google Authenticator en su teléfono."
-
-#: google-authenticator.php:247
-msgid "Secret"
-msgstr "Secreto"
-
-#: google-authenticator.php:250
-msgid "Create new secret"
-msgstr "Crear nueva clave secreta"
-
-#: google-authenticator.php:251
-msgid "Show/Hide QR code"
-msgstr "Mostar/Esconder QR Code"
-
-#: google-authenticator.php:259
-msgid "Scan this with the Google Authenticator app."
-msgstr "Escanear esto con la aplicación Google Authenticator."
-
-#: google-authenticator.php:264
-msgid "Enable App password"
-msgstr "Permitir contraseña de aplicación"
-
-#: google-authenticator.php:266
-msgid " Enabling an App password will decrease your overall login security."
-msgstr "Permitir una contraseña de aplicación disminuirá su seguridad global."
-
-#: google-authenticator.php:274
-msgid "Create new password"
-msgstr "Crear nueva contraseña"
-
-#: google-authenticator.php:275
-msgid ""
-" Password is not stored in cleartext, this is your only chance to see it."
-msgstr ""
-"La contraseña no está almacenada en formato de texto, es su única "
-"oportunidad de verla."
-
-#. Plugin Name of the plugin/theme
-msgid "Google Authenticator"
-msgstr ""
-
-#. Plugin URI of the plugin/theme
-msgid "http://henrik.schack.dk/google-authenticator-for-wordpress"
-msgstr ""
-
-#. Description of the plugin/theme
-msgid ""
-"Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry "
-"app as One Time Password generator."
-msgstr ""
-"La autentificación en dos pasos por wordpress utiliza una app Android/iPhone/"
-"Blackberry como 'One Time Password generator.'"
-
-#. Author of the plugin/theme
-msgid "Henrik Schack"
-msgstr ""
-
-#. Author URI of the plugin/theme
-msgid "http://henrik.schack.dk/"
-msgstr ""
diff --git a/plugins/google-authenticator/lang/google-authenticator-fr_FR.mo b/plugins/google-authenticator/lang/google-authenticator-fr_FR.mo
deleted file mode 100644
index 000ac747..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-fr_FR.mo
+++ /dev/null
Binary files differ
diff --git a/plugins/google-authenticator/lang/google-authenticator-fr_FR.po b/plugins/google-authenticator/lang/google-authenticator-fr_FR.po
deleted file mode 100644
index 9dcbd951..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-fr_FR.po
+++ /dev/null
@@ -1,133 +0,0 @@
-# Copyright (C) 2010 Google Authenticator
-# This file is distributed under the same license as the Google Authenticator package.
-msgid ""
-msgstr ""
-"Project-Id-Version: Google Authenticator 0.37\n"
-"Report-Msgid-Bugs-To: http://wordpress.org/tag/google-authenticator\n"
-"POT-Creation-Date: 2011-08-21 14:25:45+00:00\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"PO-Revision-Date: 2014-01-11 10:15+0100\n"
-"Last-Translator: \n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"X-Generator: Poedit 1.6.3\n"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
-"Language: fr_FR\n"
-
-#: google-authenticator.php:131
-msgid ""
-"If you don't have Google Authenticator enabled for your WordPress account, "
-"leave this field empty."
-msgstr ""
-"Si vous n'avez pas activé Google ASuthenticator pour votre compte wordpress, "
-"laissez ce champ vide."
-
-#: google-authenticator.php:131
-msgid "Google Authenticator code"
-msgstr "Code Google Authenticator"
-
-#: google-authenticator.php:176
-msgid "<strong>ERROR</strong>: The Google Authenticator password is incorrect."
-msgstr "<strong>ERREUR</strong>: Le code Google Authenticator est incorrect."
-
-#: google-authenticator.php:179
-msgid ""
-"<strong>ERROR</strong>: The Google Authenticator code is incorrect or has "
-"expired."
-msgstr ""
-"<strong>ERREUR</strong>: Le code Google Authenticator est incorrect ou "
-"périmé."
-
-#: google-authenticator.php:215
-msgid "WordPress Blog"
-msgstr "Blog WordPress"
-
-#: google-authenticator.php:218 google-authenticator.php:392
-msgid "Google Authenticator Settings"
-msgstr "Réglages Google Authenticator"
-
-#: google-authenticator.php:223 google-authenticator.php:396
-msgid "Active"
-msgstr "Activer"
-
-#: google-authenticator.php:235
-msgid "Relaxed mode"
-msgstr "Mode relax"
-
-#: google-authenticator.php:237
-msgid ""
-" Relaxed mode allows for more time drifting on your phone clock (&#177;4 "
-"min)."
-msgstr ""
-"Le mode relax vous permet d'avoir plus de temps de latence sur le chrono de "
-"votre téléphone (&#177;4 min)."
-
-#: google-authenticator.php:242
-msgid "Description"
-msgstr "Description"
-
-#: google-authenticator.php:243
-msgid ""
-" Description that you'll see in the Google Authenticator app on your phone."
-msgstr ""
-"Voici la description que vous verrez dans l'app Gogogle Authentiator de "
-"votre téléphone."
-
-#: google-authenticator.php:247
-msgid "Secret"
-msgstr "Code secret"
-
-#: google-authenticator.php:250
-msgid "Create new secret"
-msgstr "Créer nouveau code secret"
-
-#: google-authenticator.php:251
-msgid "Show/Hide QR code"
-msgstr "Montrer/Cacher le QR Code"
-
-#: google-authenticator.php:259
-msgid "Scan this with the Google Authenticator app."
-msgstr "Scanner ceci avec votre app Google Authenticator"
-
-#: google-authenticator.php:264
-msgid "Enable App password"
-msgstr "Autoriser mot de passe de l'app"
-
-#: google-authenticator.php:266
-msgid " Enabling an App password will decrease your overall login security."
-msgstr ""
-"Autoriser un mot de passe d'app réduira votre sécurité globale de connexion."
-
-#: google-authenticator.php:274
-msgid "Create new password"
-msgstr "Créer nouveau mot de passe"
-
-#: google-authenticator.php:275
-msgid ""
-" Password is not stored in cleartext, this is your only chance to see it."
-msgstr ""
-"Le mot de passe n'est pas stocké en texte clair, c'est votre seule "
-"opportunité de le voir."
-
-#. Plugin Name of the plugin/theme
-msgid "Google Authenticator"
-msgstr "Google Authenticator"
-
-#. Plugin URI of the plugin/theme
-msgid "http://henrik.schack.dk/google-authenticator-for-wordpress"
-msgstr ""
-
-#. Description of the plugin/theme
-msgid ""
-"Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry "
-"app as One Time Password generator."
-msgstr ""
-
-#. Author of the plugin/theme
-msgid "Henrik Schack"
-msgstr ""
-
-#. Author URI of the plugin/theme
-msgid "http://henrik.schack.dk/"
-msgstr ""
diff --git a/plugins/google-authenticator/lang/google-authenticator-it_IT.mo b/plugins/google-authenticator/lang/google-authenticator-it_IT.mo
deleted file mode 100644
index dae99aef..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-it_IT.mo
+++ /dev/null
Binary files differ
diff --git a/plugins/google-authenticator/lang/google-authenticator-it_IT.po b/plugins/google-authenticator/lang/google-authenticator-it_IT.po
deleted file mode 100644
index 361d5810..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-it_IT.po
+++ /dev/null
@@ -1,143 +0,0 @@
-# Copyright (C) 2010 Google Authenticator
-# This file is distributed under the same license as the Google Authenticator package.
-# Aldo Latino <aldolat@gmail.com>, 2012, 2014.
-msgid ""
-msgstr ""
-"Project-Id-Version: Google Authenticator 0.37\n"
-"Report-Msgid-Bugs-To: http://wordpress.org/tag/google-authenticator\n"
-"POT-Creation-Date: 2014-01-11 07:14:22+00:00\n"
-"PO-Revision-Date: 2014-01-12 21:24+0100\n"
-"Last-Translator: Aldo Latino <aldolat@gmail.com>\n"
-"Language-Team: Italian <kde-i18n-it@kde.org>\n"
-"Language: it\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: Lokalize 1.5\n"
-
-#: google-authenticator.php:166
-msgid ""
-"If you don't have Google Authenticator enabled for your WordPress account, "
-"leave this field empty."
-msgstr ""
-"Se Google Authenticator non è attivo per il tuo account WordPress, lascia "
-"vuoto questo campo."
-
-#: google-authenticator.php:166
-msgid "Google Authenticator code"
-msgstr "Codice di Google Authenticator"
-
-#: google-authenticator.php:231
-msgid "<strong>ERROR</strong>: The Google Authenticator password is incorrect."
-msgstr ""
-"<strong>ERRORE</strong>: la password di Google Authenticator non è corretta.."
-
-#: google-authenticator.php:234
-msgid ""
-"<strong>ERROR</strong>: The Google Authenticator code is incorrect or has "
-"expired."
-msgstr ""
-"<strong>ERRORE</strong>: Il codice di Google Authenticator non è corretto o "
-"è scaduto."
-
-#: google-authenticator.php:274
-msgid "WordPressBlog"
-msgstr "WordPress Blog"
-
-#: google-authenticator.php:277 google-authenticator.php:469
-msgid "Google Authenticator Settings"
-msgstr "Impostazioni di Google Authenticator"
-
-#: google-authenticator.php:282 google-authenticator.php:481
-msgid "Active"
-msgstr "Attivo"
-
-#: google-authenticator.php:290
-msgid "Relaxed mode"
-msgstr "Modalità comoda"
-
-#: google-authenticator.php:292
-msgid ""
-" Relaxed mode allows for more time drifting on your phone clock (&#177;4 "
-"min)."
-msgstr ""
-" La modalità comoda permette uno scostamento di tempo più esteso rispetto "
-"all'orologio del telefono (&#177;4 min)."
-
-#: google-authenticator.php:297
-msgid "Description"
-msgstr "Descrizione"
-
-#: google-authenticator.php:298
-msgid ""
-" Description that you'll see in the Google Authenticator app on your phone."
-msgstr ""
-" La descrizione che si vede nell'app Google Authenticator sul telefono."
-
-#: google-authenticator.php:302
-msgid "Secret"
-msgstr "Chiave segreta"
-
-#: google-authenticator.php:305
-msgid "Create new secret"
-msgstr "Crea una nuova chiave segreta"
-
-#: google-authenticator.php:306
-msgid "Show/Hide QR code"
-msgstr "Mostra/nascondi il codice QR"
-
-#: google-authenticator.php:315
-msgid "Scan this with the Google Authenticator app."
-msgstr "Effettua la scansione con l'app Google Authenticator."
-
-#: google-authenticator.php:320
-msgid "Enable App password"
-msgstr "Abilita la password delle App"
-
-#: google-authenticator.php:322
-msgid " Enabling an App password will decrease your overall login security."
-msgstr ""
-" L'abilitazione della password delle App abbasserà il livello di sicurezza "
-"generale del login."
-
-#: google-authenticator.php:330
-msgid "Create new password"
-msgstr "Crea una nuova password"
-
-#: google-authenticator.php:331
-msgid ""
-" Password is not stored in cleartext, this is your only chance to see it."
-msgstr ""
-" La password non è conservata in chiaro: questo l'unico momento in cui la si "
-"può vedere."
-
-#: google-authenticator.php:474
-msgid "Hide settings from user"
-msgstr "Nascondi le impostazioni agli utenti"
-
-#. Plugin Name of the plugin/theme
-msgid "Google Authenticator"
-msgstr "Google Authenticator"
-
-#. Plugin URI of the plugin/theme
-msgid "http://henrik.schack.dk/google-authenticator-for-wordpress"
-msgstr "http://henrik.schack.dk/google-authenticator-for-wordpress"
-
-#. Description of the plugin/theme
-msgid ""
-"Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry "
-"app as One Time Password generator."
-msgstr ""
-"Autenticazione a due fattori per WordPress utilizzando un'app su Android/"
-"iPhone/Blackberry come generatore di Password usa-e-getta."
-
-#. Author of the plugin/theme
-msgid "Henrik Schack"
-msgstr "Henrik Schack"
-
-#. Author URI of the plugin/theme
-msgid "http://henrik.schack.dk/"
-msgstr "http://henrik.schack.dk/"
-
-
diff --git a/plugins/google-authenticator/lang/google-authenticator-nl_NL.mo b/plugins/google-authenticator/lang/google-authenticator-nl_NL.mo
deleted file mode 100644
index 0fbdcb13..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-nl_NL.mo
+++ /dev/null
Binary files differ
diff --git a/plugins/google-authenticator/lang/google-authenticator-nl_NL.po b/plugins/google-authenticator/lang/google-authenticator-nl_NL.po
deleted file mode 100644
index 2e0fc09b..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-nl_NL.po
+++ /dev/null
@@ -1,317 +0,0 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: Google Authenticator\n"
-"POT-Creation-Date: 2019-04-12 17:20+0200\n"
-"PO-Revision-Date: 2019-04-12 17:38+0200\n"
-"Last-Translator: \n"
-"Language-Team: \n"
-"Language: nl_NL\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Poedit 2.2.1\n"
-"X-Poedit-Basepath: ..\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
-"X-Poedit-WPHeader: google-authenticator.php\n"
-"X-Poedit-SourceCharset: UTF-8\n"
-"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
-"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
-"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
-"X-Poedit-SearchPath-0: .\n"
-"X-Poedit-SearchPathExcluded-0: *.js\n"
-
-#. Plugin Name of the plugin/theme
-#: google-authenticator.php:196 google-authenticator.php:199
-#: google-authenticator.php:202
-msgid "Google Authenticator"
-msgstr ""
-
-#: google-authenticator.php:280
-msgid ""
-"OTP code doesn't match supplied secret, please check you've configured "
-"Authenticator correctly."
-msgstr ""
-"OTP-code komt niet overeen met de opgegeven geheime code, controleer of je "
-"de Authenticator goed hebt ingesteld."
-
-#: google-authenticator.php:289
-msgid ""
-"Congratulations, you have successfully enabled Google Authenticator for your "
-"account"
-msgstr ""
-"Gefeliciteerd, je hebt Google Authenticator met succes ingeschakeld voor je "
-"account"
-
-#: google-authenticator.php:310
-msgid "iOS: Authy"
-msgstr ""
-
-#: google-authenticator.php:314
-msgid "iOS: Google Authenticator"
-msgstr ""
-
-#: google-authenticator.php:318
-msgid "Android: Authy"
-msgstr ""
-
-#: google-authenticator.php:322
-msgid "Android: Google Authenticator"
-msgstr ""
-
-#: google-authenticator.php:326
-msgid "Windows Phone"
-msgstr ""
-
-#: google-authenticator.php:330
-msgid "Chrome Browser"
-msgstr ""
-
-#: google-authenticator.php:334
-msgid "Desktop"
-msgstr ""
-
-#: google-authenticator.php:342 google-authenticator.php:433
-#: google-authenticator.php:715 google-authenticator.php:936
-msgid "Google Authenticator Settings"
-msgstr "Google Authenticator instellingen"
-
-#: google-authenticator.php:346
-msgid ""
-"If you haven't already done so, please install the Authy or Google "
-"Authenticator app on your mobile device from the App Store:"
-msgstr ""
-"Mocht je dit nog niet gedaan hebben, installeer dan de Authy of Google "
-"Authenticator app vanuit de App Store op je mobiele apparaat:"
-
-#: google-authenticator.php:352
-msgid ""
-"The easiest way to enable your account is to add an account by scanning the "
-"QR code using the app."
-msgstr ""
-"De makkelijkste manier om je account in te schakelen is een account toe te "
-"voegen door het scannen van de QR-code met de app."
-
-#: google-authenticator.php:354
-msgid ""
-"An account can also be added by typing in the secret. After you've added "
-"your account to the App, please type the code you see on the screen into the "
-"Authenticator Code field and press the Verify Authenticator Code button."
-msgstr ""
-"Een account kan ook worden toegevoegd door de geheim code in te typen. Nadat "
-"je je account hebt toegevoegd in de app, type je de code die je op het "
-"scherm ziet in het veld Authenticatiecode en druk je op de knop Verifieer "
-"authenticatiecode."
-
-#: google-authenticator.php:357
-msgid ""
-"If the account setup was successful, you will be logged out, and will need "
-"to login again using your Username, Password and Authenticator code "
-"generated using the App on your mobile device."
-msgstr ""
-"Als het instellen van het account is gelukt, wordt je uitgelogd en moet je "
-"opnieuw inloggen met je gebruikersnaam, wachtwoord en authenticatiecode die "
-"in de app op je mobiele apparaat wordt gegenereerd."
-
-#: google-authenticator.php:436
-msgid "Successfullly saved your settings for the network"
-msgstr "Instellingen succesvol opgeslagen voor het netwerk"
-
-#: google-authenticator.php:438
-msgid "Successfullly saved your settings for the site"
-msgstr "Instellingen succesvol opgeslagen voor de site"
-
-#: google-authenticator.php:443
-msgid "Network Settings"
-msgstr "Netwerk instellingen"
-
-#: google-authenticator.php:447
-msgid "Only use network-wide settings, ignoring site settings."
-msgstr ""
-"Gebruik alleen instellingen voor het hele netwerk en negeer de instellingen "
-"van de site."
-
-#: google-authenticator.php:453
-msgid "Two Screen Signin"
-msgstr "Aanmelden op twee schermen"
-
-#: google-authenticator.php:457
-msgid "Ask for authenticator code on secondary login screen"
-msgstr "Vraag naar de authenticatiecode op een secundair inlogscherm"
-
-#: google-authenticator.php:461
-msgid "Roles requiring Google Authenticator Enabled"
-msgstr "Rollen waarbij gebruik Google Authenticator is vereist"
-
-#: google-authenticator.php:469
-msgid "Network-wide settings in effect, only a super admin can modify them."
-msgstr ""
-"Netwerk brede instellingen zijn van kracht, alleen een super-beheerder kan "
-"deze wijzigen."
-
-#: google-authenticator.php:471
-msgid "Change network wide Google Authenticator settings"
-msgstr "Verander netwerk brede Google Authenticator instellingen"
-
-#: google-authenticator.php:511
-msgid ""
-"Sorry, you can't disable checks for this role as it's enabled at the network "
-"level."
-msgstr ""
-"Sorry, je kunt de controles voor deze rol niet uitschakelen omdat deze op "
-"het netwerkniveau is ingeschakeld."
-
-#: google-authenticator.php:513
-#, php-format
-msgid ""
-"Sorry, this role is enabled at the network level and can only be disabled "
-"via the <a href=\"%s\">network settings</a>"
-msgstr ""
-"Sorry, deze rol is ingeschakeld op netwerkniveau en kan alleen worden "
-"uitgeschakeld via de <a href=“%s”>netwerkinstellingen</a>"
-
-#: google-authenticator.php:542
-msgid ""
-"If you don't have Google Authenticator enabled for your WordPress account, "
-"leave this field empty."
-msgstr ""
-"Als Google Authenticator niet is ingeschakeld voor je WordPress-account, "
-"laat dit veld dan leeg."
-
-#: google-authenticator.php:542
-msgid "Google Authenticator code"
-msgstr "Google Authenticator-code"
-
-#: google-authenticator.php:615
-msgid "<strong>ERROR</strong>: The Google Authenticator password is incorrect."
-msgstr "<strong>ERROR</strong>: De Google Authenticator-wachtwoord is onjuist."
-
-#: google-authenticator.php:619 google-authenticator.php:640
-msgid ""
-"<strong>ERROR</strong>: The Google Authenticator code is incorrect or has "
-"expired."
-msgstr ""
-"<strong>ERROR</strong>: De Google Authenticator-code is onjuist of verlopen."
-
-#: google-authenticator.php:635
-msgid "Secondary Login Screen"
-msgstr "Secundair inlogscherm"
-
-#: google-authenticator.php:638
-msgid "<strong>ERROR</strong>: The Google Authenticator code is missing."
-msgstr "<strong>ERROR</strong>: De Google Authenticator-code ontbreekt."
-
-#: google-authenticator.php:652
-msgid ""
-"Please enter the Google Authenticator code using the app on your device."
-msgstr ""
-"Voer de Google Authenticator-code in met behulp van de app op je mobiele "
-"apparaat."
-
-#: google-authenticator.php:654
-msgid "Log In"
-msgstr "Inloggen"
-
-#: google-authenticator.php:722 google-authenticator.php:948
-msgid "Active"
-msgstr "Actief"
-
-#: google-authenticator.php:731
-msgid "Relaxed mode"
-msgstr "Ontspannen modus"
-
-#: google-authenticator.php:733
-msgid ""
-" Relaxed mode allows for more time drifting on your phone clock (&#177;4 "
-"min)."
-msgstr ""
-" Ontspannen modus geeft meer ruimte voor een afwijkende klok op je mobiele "
-"apparaat (&#177;4 min)."
-
-#: google-authenticator.php:740
-msgid "Description"
-msgstr "Omschrijving"
-
-#: google-authenticator.php:741
-msgid ""
-" Description that you'll see in the Google Authenticator app on your phone."
-msgstr ""
-" Omschrijving die je ziet in de Google Authenticator app op je mobiele "
-"apparaat."
-
-#: google-authenticator.php:745
-msgid "Secret"
-msgstr "Geheime code"
-
-#: google-authenticator.php:749
-msgid "Create new secret"
-msgstr "Nieuw geheime code maken"
-
-#: google-authenticator.php:750
-msgid "Show/Hide QR code"
-msgstr "Toon/verberg QR-code"
-
-#: google-authenticator.php:762
-msgid "Scan this with the Google Authenticator app."
-msgstr "Scan dit met de Google Authenticator-app."
-
-#: google-authenticator.php:774
-msgid "Enable App password"
-msgstr "Schakel in App-wachtwoord"
-
-#: google-authenticator.php:776
-msgid " Enabling an App password will decrease your overall login security."
-msgstr ""
-" Als je een App-wachtwoord inschakelt, wordt je totale inlog beveiliging "
-"minder."
-
-#: google-authenticator.php:784
-msgid "Create new password"
-msgstr "Nieuw wachtwoord maken"
-
-#: google-authenticator.php:785
-msgid ""
-" Password is not stored in cleartext, this is your only chance to see it."
-msgstr ""
-" Wachtwoord wordt niet als platte tekst opgeslagen, dit is je enige kans om "
-"het te zien."
-
-#: google-authenticator.php:793
-msgid "Authenticator Code"
-msgstr "Authenticatiecode"
-
-#: google-authenticator.php:794
-msgid ""
-"After adding the site to your google authy account, add your authenticator "
-"code here."
-msgstr ""
-"Na het toevoegen van de site aan je Google Authy-account, voeg je hier je "
-"authenticatiecode toe."
-
-#: google-authenticator.php:800
-msgid "Verify Authenticator Code"
-msgstr "Verifieer authenticatiecode"
-
-#: google-authenticator.php:941
-msgid "Hide settings from user"
-msgstr "Verberg gebruikers instellingen"
-
-#. Plugin URI of the plugin/theme
-msgid "https://github.com/ivankruchkoff/google-authenticator"
-msgstr ""
-
-#. Description of the plugin/theme
-msgid ""
-"Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry "
-"app as One Time Password generator."
-msgstr ""
-"Twee-staps-authenticatie voor WordPress met behulp van de Android/iPhone/"
-"Blackberry app als eenmalig wachtwoord generator."
-
-#. Author of the plugin/theme
-msgid "Ivan Kruchkoff"
-msgstr ""
-
-#. Author URI of the plugin/theme
-msgid "https://github.com/ivankruchkoff"
-msgstr ""
diff --git a/plugins/google-authenticator/lang/google-authenticator-pt_BR.mo b/plugins/google-authenticator/lang/google-authenticator-pt_BR.mo
deleted file mode 100644
index e318239e..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-pt_BR.mo
+++ /dev/null
Binary files differ
diff --git a/plugins/google-authenticator/lang/google-authenticator-pt_BR.po b/plugins/google-authenticator/lang/google-authenticator-pt_BR.po
deleted file mode 100644
index 54c213fa..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-pt_BR.po
+++ /dev/null
@@ -1,123 +0,0 @@
-# Copyright (C) 2010 Google Authenticator
-# This file is distributed under the same license as the Google Authenticator package.
-msgid ""
-msgstr ""
-"Project-Id-Version: Google Authenticator 0.37\n"
-"Report-Msgid-Bugs-To: http://wordpress.org/tag/google-authenticator\n"
-"POT-Creation-Date: 2011-08-21 14:25:45+00:00\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"PO-Revision-Date: 2014-01-11 10:07+0100\n"
-"Last-Translator: \n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"X-Generator: Poedit 1.6.3\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"Language: pt_BR\n"
-
-#: google-authenticator.php:131
-msgid ""
-"If you don't have Google Authenticator enabled for your WordPress account, "
-"leave this field empty."
-msgstr "Se você não tiver o Google Authenticator ativado para sua conta do WordPress, deixe este campo vazio."
-
-#: google-authenticator.php:131
-msgid "Google Authenticator code"
-msgstr "Código do Google Authenticator"
-
-#: google-authenticator.php:176
-msgid "<strong>ERROR</strong>: The Google Authenticator password is incorrect."
-msgstr "<strong>ERRO</strong>: a senha do Google Authenticator está incorreta."
-
-#: google-authenticator.php:179
-msgid ""
-"<strong>ERROR</strong>: The Google Authenticator code is incorrect or has "
-"expired."
-msgstr "<strong>ERRO</strong>: o código do Google Authenticator está incorreto ou expirou."
-
-#: google-authenticator.php:215
-msgid "WordPress Blog"
-msgstr "Blog WordPress"
-
-#: google-authenticator.php:218 google-authenticator.php:392
-msgid "Google Authenticator Settings"
-msgstr "Configurações do Google Authenticator"
-
-#: google-authenticator.php:223 google-authenticator.php:396
-msgid "Active"
-msgstr "Ativar"
-
-#: google-authenticator.php:235
-msgid "Relaxed mode"
-msgstr "Modo relaxado"
-
-#: google-authenticator.php:237
-msgid ""
-" Relaxed mode allows for more time drifting on your phone clock (&#177;4 "
-"min)."
-msgstr "O modo relaxado permite mais tempo à deriva no relógio do seu telefone (&#177;4 min)."
-
-#: google-authenticator.php:242
-msgid "Description"
-msgstr "Descrição"
-
-#: google-authenticator.php:243
-msgid ""
-" Description that you'll see in the Google Authenticator app on your phone."
-msgstr "Descrição que você verá no aplicativo Google Authenticator em seu telefone."
-
-#: google-authenticator.php:247
-msgid "Secret"
-msgstr "Secreto"
-
-#: google-authenticator.php:250
-msgid "Create new secret"
-msgstr "Crie um novo segredo"
-
-#: google-authenticator.php:251
-msgid "Show/Hide QR code"
-msgstr "Mostar/Esconder QR Code"
-
-#: google-authenticator.php:259
-msgid "Scan this with the Google Authenticator app."
-msgstr "Escaneie isso com o aplicativo Google Authenticator."
-
-#: google-authenticator.php:264
-msgid "Enable App password"
-msgstr "Ativar senha do aplicativo"
-
-#: google-authenticator.php:266
-msgid " Enabling an App password will decrease your overall login security."
-msgstr "Ativar uma senha de aplicativo diminuirá sua segurança geral de login."
-
-#: google-authenticator.php:274
-msgid "Create new password"
-msgstr "Crie uma nova senha"
-
-#: google-authenticator.php:275
-msgid ""
-" Password is not stored in cleartext, this is your only chance to see it."
-msgstr "A senha não é armazenada em texto puro, essa é sua única chance de vê-la."
-
-#. Plugin Name of the plugin/theme
-msgid "Google Authenticator"
-msgstr "Google Authenticator"
-
-#. Plugin URI of the plugin/theme
-msgid "http://henrik.schack.dk/google-authenticator-for-wordpress"
-msgstr "http://henrik.schack.dk/google-authenticator-for-wordpress"
-
-#. Description of the plugin/theme
-msgid ""
-"Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry "
-"app as One Time Password generator."
-msgstr "Autenticação de dois fatores para WordPress usando o aplicativo Android / iPhone / Blackberry como gerador de senha única."
-
-#. Author of the plugin/theme
-msgid "Henrik Schack"
-msgstr "Henrik Schack"
-
-#. Author URI of the plugin/theme
-msgid "http://henrik.schack.dk/"
-msgstr "http://henrik.schack.dk/"
-
diff --git a/plugins/google-authenticator/lang/google-authenticator-zh_CN.mo b/plugins/google-authenticator/lang/google-authenticator-zh_CN.mo
deleted file mode 100644
index cdf342ea..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-zh_CN.mo
+++ /dev/null
Binary files differ
diff --git a/plugins/google-authenticator/lang/google-authenticator-zh_CN.po b/plugins/google-authenticator/lang/google-authenticator-zh_CN.po
deleted file mode 100644
index 8b6cb67e..00000000
--- a/plugins/google-authenticator/lang/google-authenticator-zh_CN.po
+++ /dev/null
@@ -1,126 +0,0 @@
-# Copyright (C) 2010 Google Authenticator
-# This file is distributed under the same license as the Google Authenticator package.
-msgid ""
-msgstr ""
-"Project-Id-Version: Google Authenticator 0.37\n"
-"Report-Msgid-Bugs-To: http://wordpress.org/tag/google-authenticator\n"
-"POT-Creation-Date: 2014-01-11 07:14:22+00:00\n"
-"PO-Revision-Date: 2014-01-13 13:48+0800\n"
-"Last-Translator: Kaijia Feng <fengkaijia@gmail.com>\n"
-"Language-Team: \n"
-"Language: zh_CN\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Poedit 1.5.5\n"
-
-#: google-authenticator.php:166
-msgid ""
-"If you don't have Google Authenticator enabled for your WordPress account, "
-"leave this field empty."
-msgstr "如果您的帐号没有启用Google Authenticator身份验证功能,请不必填写此栏。"
-
-#: google-authenticator.php:166
-msgid "Google Authenticator code"
-msgstr "Google Authenticator验证码"
-
-#: google-authenticator.php:231
-msgid "<strong>ERROR</strong>: The Google Authenticator password is incorrect."
-msgstr "<strong>错误</strong>:Google Authenticator验证码有误。"
-
-#: google-authenticator.php:234
-msgid ""
-"<strong>ERROR</strong>: The Google Authenticator code is incorrect or has "
-"expired."
-msgstr "<strong>错误</strong>:Google Authenticator验证码有误或者已经失效。"
-
-#: google-authenticator.php:274
-msgid "WordPressBlog"
-msgstr "WordPressBlog"
-
-#: google-authenticator.php:277 google-authenticator.php:469
-msgid "Google Authenticator Settings"
-msgstr "Google Authenticator设置"
-
-#: google-authenticator.php:282 google-authenticator.php:481
-msgid "Active"
-msgstr "启用"
-
-#: google-authenticator.php:290
-msgid "Relaxed mode"
-msgstr "宽松模式"
-
-#: google-authenticator.php:292
-msgid ""
-" Relaxed mode allows for more time drifting on your phone clock (&#177;4 "
-"min)."
-msgstr " 在宽松模式下你可以有更长的时间输入验证码(&#177;4分钟)。"
-
-#: google-authenticator.php:297
-msgid "Description"
-msgstr "描述"
-
-#: google-authenticator.php:298
-msgid ""
-" Description that you'll see in the Google Authenticator app on your phone."
-msgstr " 在Google Authenticator应用中显示的帐户描述。"
-
-#: google-authenticator.php:302
-msgid "Secret"
-msgstr "密钥"
-
-#: google-authenticator.php:305
-msgid "Create new secret"
-msgstr "创建新密钥"
-
-#: google-authenticator.php:306
-msgid "Show/Hide QR code"
-msgstr "显示/隐藏QR码"
-
-#: google-authenticator.php:315
-msgid "Scan this with the Google Authenticator app."
-msgstr "使用Google Authenticator应用扫描此图像。"
-
-#: google-authenticator.php:320
-msgid "Enable App password"
-msgstr "启用应用专用密码"
-
-#: google-authenticator.php:322
-msgid " Enabling an App password will decrease your overall login security."
-msgstr " 启用应用专用密码将会在总体上降低登录的安全性。"
-
-#: google-authenticator.php:330
-msgid "Create new password"
-msgstr "创建新密码"
-
-#: google-authenticator.php:331
-msgid ""
-" Password is not stored in cleartext, this is your only chance to see it."
-msgstr " 密码将不会明文储存,这将是你唯一一次看见密码。"
-
-#: google-authenticator.php:474
-msgid "Hide settings from user"
-msgstr "不对用户显示设置"
-
-#. Plugin Name of the plugin/theme
-msgid "Google Authenticator"
-msgstr "Google Authenticator"
-
-#. Plugin URI of the plugin/theme
-msgid "http://henrik.schack.dk/google-authenticator-for-wordpress"
-msgstr "http://henrik.schack.dk/google-authenticator-for-wordpress"
-
-#. Description of the plugin/theme
-msgid ""
-"Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry "
-"app as One Time Password generator."
-msgstr ""
-"使用Android/iPhone/Blackberry一次性密码生成应用为WordPress提供两步验证。"
-
-#. Author of the plugin/theme
-msgid "Henrik Schack"
-msgstr "Henrik Schack"
-
-#. Author URI of the plugin/theme
-msgid "http://henrik.schack.dk/"
-msgstr "http://henrik.schack.dk/"
diff --git a/plugins/google-authenticator/lang/google-authenticator.pot b/plugins/google-authenticator/lang/google-authenticator.pot
deleted file mode 100644
index a300d648..00000000
--- a/plugins/google-authenticator/lang/google-authenticator.pot
+++ /dev/null
@@ -1,260 +0,0 @@
-# Copyright (C) 2017 Google Authenticator
-# This file is distributed under the same license as the Google Authenticator package.
-msgid ""
-msgstr ""
-"Project-Id-Version: Google Authenticator 0.49\n"
-"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/google-"
-"authenticator\n"
-"POT-Creation-Date: 2017-10-28 00:02:58+00:00\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-
-#. #-#-#-#-# google-authenticator.pot (Google Authenticator 0.49) #-#-#-#-#
-#. Plugin Name of the plugin/theme
-#: google-authenticator.php:190 google-authenticator.php:193
-msgid "Google Authenticator"
-msgstr ""
-
-#: google-authenticator.php:268
-msgid ""
-"OTP code doesn't match supplied secret, please check you've configured "
-"Authenticator correctly."
-msgstr ""
-
-#: google-authenticator.php:277
-msgid ""
-"Congratulations, you have successfully enabled Google Authenticator for your "
-"account "
-msgstr ""
-
-#: google-authenticator.php:298
-msgid "iOS: Authy"
-msgstr ""
-
-#: google-authenticator.php:302
-msgid "iOS: Google Authenticator"
-msgstr ""
-
-#: google-authenticator.php:306
-msgid "Android: Authy"
-msgstr ""
-
-#: google-authenticator.php:310
-msgid "Android: Google Authenticator"
-msgstr ""
-
-#: google-authenticator.php:314
-msgid "Windows Phone"
-msgstr ""
-
-#: google-authenticator.php:318
-msgid "Chrome Browser"
-msgstr ""
-
-#: google-authenticator.php:322
-msgid "Desktop"
-msgstr ""
-
-#: google-authenticator.php:330 google-authenticator.php:415
-#: google-authenticator.php:693 google-authenticator.php:914
-msgid "Google Authenticator Settings"
-msgstr ""
-
-#: google-authenticator.php:334
-msgid ""
-"If you haven't already done so, please install the Authy or Google "
-"Authenticator app on your mobile device from the App Store:"
-msgstr ""
-
-#: google-authenticator.php:340
-msgid ""
-"The easiest way to enable your account is to add an account by scanning the "
-"QR code using the app."
-msgstr ""
-
-#: google-authenticator.php:342
-msgid ""
-"An account can also be added by typing in the secret. After you've added "
-"your account to the App, please type the code you see on the screen into the "
-"Authenticator Code field and press the Verify Authenticator Code button."
-msgstr ""
-
-#: google-authenticator.php:345
-msgid ""
-"If the account setup was successful, you will be logged out, and will need "
-"to login again using your Username, Password and Authenticator code "
-"generated using the App on your mobile device."
-msgstr ""
-
-#: google-authenticator.php:417
-msgid "foo"
-msgstr ""
-
-#: google-authenticator.php:421
-msgid "Network Settings"
-msgstr ""
-
-#: google-authenticator.php:425
-msgid "Only use network-wide settings, ignoring site settings."
-msgstr ""
-
-#: google-authenticator.php:431
-msgid "Two Screen Signin"
-msgstr ""
-
-#: google-authenticator.php:435
-msgid "Ask for authenticator code on secondary login screen"
-msgstr ""
-
-#: google-authenticator.php:439
-msgid "Roles requiring Google Authenticator Enabled"
-msgstr ""
-
-#: google-authenticator.php:447
-msgid "Network-wide settings in effect, only a super admin can modify them."
-msgstr ""
-
-#: google-authenticator.php:449
-msgid "Change network wide Google Authenticator settings"
-msgstr ""
-
-#: google-authenticator.php:489
-msgid ""
-"Sorry, you can't disable checks for this role as it's enabled at the network "
-"level."
-msgstr ""
-
-#: google-authenticator.php:491
-msgid ""
-"Sorry, this role is enabled at the network level and can only be disabled "
-"via the <a href=\"%s\">network settings</a>"
-msgstr ""
-
-#: google-authenticator.php:520
-msgid ""
-"If you don't have Google Authenticator enabled for your WordPress account, "
-"leave this field empty."
-msgstr ""
-
-#: google-authenticator.php:520
-msgid "Google Authenticator code"
-msgstr ""
-
-#: google-authenticator.php:593
-msgid "<strong>ERROR</strong>: The Google Authenticator password is incorrect."
-msgstr ""
-
-#: google-authenticator.php:597 google-authenticator.php:618
-msgid ""
-"<strong>ERROR</strong>: The Google Authenticator code is incorrect or has "
-"expired."
-msgstr ""
-
-#: google-authenticator.php:616
-msgid "<strong>ERROR</strong>: The Google Authenticator code is missing."
-msgstr ""
-
-#: google-authenticator.php:630
-msgid ""
-"Please enter the Google Authenticator code using the app on your device."
-msgstr ""
-
-#: google-authenticator.php:632
-msgid "Log In"
-msgstr ""
-
-#: google-authenticator.php:700 google-authenticator.php:926
-msgid "Active"
-msgstr ""
-
-#: google-authenticator.php:709
-msgid "Relaxed mode"
-msgstr ""
-
-#: google-authenticator.php:711
-msgid ""
-" Relaxed mode allows for more time drifting on your phone clock (&#177;4 "
-"min)."
-msgstr ""
-
-#: google-authenticator.php:718
-msgid "Description"
-msgstr ""
-
-#: google-authenticator.php:719
-msgid ""
-" Description that you'll see in the Google Authenticator app on your phone."
-msgstr ""
-
-#: google-authenticator.php:723
-msgid "Secret"
-msgstr ""
-
-#: google-authenticator.php:727
-msgid "Create new secret"
-msgstr ""
-
-#: google-authenticator.php:728
-msgid "Show/Hide QR code"
-msgstr ""
-
-#: google-authenticator.php:740
-msgid "Scan this with the Google Authenticator app."
-msgstr ""
-
-#: google-authenticator.php:752
-msgid "Enable App password"
-msgstr ""
-
-#: google-authenticator.php:754
-msgid " Enabling an App password will decrease your overall login security."
-msgstr ""
-
-#: google-authenticator.php:762
-msgid "Create new password"
-msgstr ""
-
-#: google-authenticator.php:763
-msgid ""
-" Password is not stored in cleartext, this is your only chance to see it."
-msgstr ""
-
-#: google-authenticator.php:771
-msgid "Authenticator Code"
-msgstr ""
-
-#: google-authenticator.php:772
-msgid ""
-"After adding the site to your google authy account, add your authenticator "
-"code here."
-msgstr ""
-
-#: google-authenticator.php:778
-msgid "Verify Authenticator Code"
-msgstr ""
-
-#: google-authenticator.php:919
-msgid "Hide settings from user"
-msgstr ""
-
-#. Plugin URI of the plugin/theme
-msgid "http://henrik.schack.dk/google-authenticator-for-wordpress"
-msgstr ""
-
-#. Description of the plugin/theme
-msgid ""
-"Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry "
-"app as One Time Password generator."
-msgstr ""
-
-#. Author of the plugin/theme
-msgid "Henrik Schack"
-msgstr ""
-
-#. Author URI of the plugin/theme
-msgid "http://henrik.schack.dk/"
-msgstr ""
diff --git a/plugins/google-authenticator/readme.txt b/plugins/google-authenticator/readme.txt
deleted file mode 100644
index a35ef72e..00000000
--- a/plugins/google-authenticator/readme.txt
+++ /dev/null
@@ -1,194 +0,0 @@
-=== Google Authenticator ===
-Contributors: ivankk
-Tags: authentication,otp,password,security,login,android,iphone,blackberry
-Requires at least: 4.5
-Tested up to: 5.2
-Stable tag: 0.52
-License: GPLv2 or later
-License URI: http://www.gnu.org/licenses/gpl-2.0.html
-
-Google Authenticator for your WordPress blog.
-
-== Description ==
-
-The Google Authenticator plugin for WordPress gives you two-factor authentication using the Google Authenticator app for Android/iPhone/Blackberry.
-
-If you are security aware, you may already have the Google Authenticator app installed on your smartphone, using it for two-factor authentication on Gmail/Dropbox/Lastpass/Amazon etc.
-
-The two-factor authentication requirement can be enabled on a per-user basis. You could enable it for your administrator account, but log in as usual with less privileged accounts.
-
-If You need to maintain your blog using an Android/iPhone app, or any other software using the XMLRPC interface, you can enable the App password feature in this plugin,
-but please note that enabling the App password feature will make your blog less secure.
-
-== Installation ==
-1. Make sure your webhost is capable of providing accurate time information for PHP/WordPress, ie. make sure a NTP daemon is running on the server.
-2. Install and activate the plugin.
-3. Enter a description on the Users -> Profile and Personal options page, in the Google Authenticator section.
-4. Scan the generated QR code with your phone, or enter the secret manually, remember to pick the time based one.
-You may also want to write down the secret on a piece of paper and store it in a safe place.
-5. Remember to hit the **Update profile** button at the bottom of the page before leaving the Personal options page.
-6. That's it, your WordPress blog is now a little more secure.
-
-== Frequently Asked Questions ==
-
-= Can I use Google Authenticator for WordPress with the Android/iPhone apps for WordPress? =
-
-Yes, you can enable the App password feature to make that possible, but notice that the XMLRPC interface isn't protected by two-factor authentication, only a long password.
-
-= I want to update the secret, should I just scan the new QR code after creating a new secret? =
-
-No, you'll have to delete the existing account from the Google Authenticator app on your smartphone before you scan the new QR code, that is unless you change the description as well.
-
-= I am unable to log in using this plugin, what's wrong ? =
-
-The Google Authenticator verification codes are time based, so it's crucial that the clock in your phone is accurate and in sync with the clock on the server where your WordPress installation is hosted.
-If you have an Android phone, you can use an app like [ClockSync](https://market.android.com/details?id=ru.org.amip.ClockSync) to set your clock in case your Cell provider doesn't provide accurate time information
-Another option is to enable "relaxed mode" in the settings for the plugin, this will enable more valid codes by allowing up to a 4 min. timedrift in each direction.
-
-= I have several users on my WordPress installation, is that a supported configuration ? =
-
-Yes, each user has his own Google Authenticator settings.
-
-= During installation I forgot the thing about making sure my webhost is capable of providing accurate time information, I'm now unable to login, please help. =
-
-If you have SSH or FTP access to your webhosting account, you can manually delete the plugin from your WordPress installation,
-just delete the wp-content/plugins/google-authenticator directory, and you'll be able to login using username/password again.
-
-= I don't own a Smartphone, isn't there another way to generate these secret codes ? =
-
-Yes, there is a webbased version here : https://gauth.apps.gbraad.nl/
-Github project here : https://github.com/gbraad/gauth
-
-= Can I create backupcodes ? =
-
-No, but if you're using an Android smartphone you can replace the Google Authenticator app with [Authenticator Plus](https://play.google.com/store/apps/details?id=com.mufri.authenticatorplus).
-It's a really nice app that can import your existing settings, sync between devices and backup/restore using your sd-card.
-It's not a free app, but it's well worth the money.
-
-= Any known incompatabilities ? =
-
-Yes, the Man-in-the-middle attack/replay detection code isn't compatible with the test/setup mode in the "Stop spammer registration plugin",
-please remember to remove the "Check credentials on all login attempts" checkmark before installing my plugin.
-
-
-
-== Screenshots ==
-
-1. The enhanced log-in box.
-2. Google Authenticator section on the Profile and Personal options page.
-3. QR code on the Profile and Personal options page.
-4. Google Authenticator app on Android
-
-== Changelog ==
-= 0.52 =
-* Add a Dutch translation
-* Add a Portuguese translation
-
-= 0.51 =
-* Fix a regression that broke app passwords
-
-= 0.50 =
-* New maintainer ivankk
-* Conditionally include base32 class
-
-= 0.49 =
-* More streamlined sign-up flow for users, configuration screen for admins.
-* Multisite support to either enable 2fa by role on a site, and/or on a network.
-* Added filter google_authenticator_needs_setup to determine if user needs to enable 2fa.
-* Added two part login process that can ask for 2fa code on a second login screen.
-* Fixed a security bug that continued check_otp even if authenticate had already returned an error.
-
-= 0.48 =
-* Security fix / compatability with WordPress 4.5
-
-= 0.47 =
-* Google chart API replaced with jquery-qrcode
-* QR codes now contain a heading saying WordPress (Feature request by Flemming Mahler)
-* Danish translation & updated .pot file.
-* Plugin now logs login attempts recognized as Man-in-the-middle attacks.
-
-= 0.46 =
-* Man-in-the-middle attack protection added.
-* Show warning before displaying the QR code.
-* FAQ updated.
-
-= 0.45 =
-* Spaces in the description field should now work on iPhones.
-* Some depricated function calls replaced.
-* Code inputfield easier to use for .jp users now.
-* Sanitize description field input.
-* App password hash function switched to one that doesn't have rainbow tables available.
-* PHP notices occurring during app password login removed.
-
-= 0.44 =
-* Installation/FAQ section updated.
-* Simplified Chinese translation by Kaijia Feng added.
-* Tabindex on loginpage removed, no longer needed, was used by older WordPress installations.
-* Inputfield renamed to "googleotp".
-* Defaultdescription changed to "WordPressBlog" to avoid trouble for iPhone users.
-* Compatibility with Ryan Hellyer's plugin http://geek.ryanhellyer.net/products/deactivate-google-authenticator/
-* Must enter all 6 code digits.
-
-= 0.43 =
-* It's now possible for an admin to hide the Google Authenticaator settings on a per-user basis. (Feature request by : Skate-O)
-
-= 0.42 =
-* Autocomplete disabled on code input field. (Feature request by : hiphopsmurf)
-
-= 0.41 =
-* Italian translation by Aldo Latino added.
-
-= 0.40 =
-* Bugfix, typo corrected and PHP notices removed. Thanks to Dion Hulse for his patch.
-
-= 0.39 =
-* Bugfix, Description was not saved to WordPress database when updating profile. Thanks to xxdesmus for noticing this.
-
-= 0.38 =
-* Usability fix, input field for codes changed from password to text type.
-
-= 0.37 =
-* The plugin now supports "relaxed mode" when authenticating. If selected, codes from 4 minutes before and 4 minutes after will work. 30 seconds before and after is still the default setting.
-
-= 0.36 =
-* Bugfix, now an App password can only be used for XMLRPC/APP-Request logins.
-
-= 0.35 =
-* Initial WordPress app support added (XMLRPC).
-
-= 0.30 =
-* Code cleanup
-* Changed generation of secret key, to no longer have requirement of SHA256 on the server
-* German translation
-
-= 0.20 =
-* Initial release
-
-
-== Credits ==
-
-Thanks to:
-
-[Fabio Zumbi](https://github.com/FabioZumbi12) for the Portuguese translation
-
-[Guido Schalkx](https://www.guidoschalkx.com/) for the Dutch translation.
-
-[Henrik.Schack](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=henrik%40schack%2edk&lc=US&item_name=Google%20Authenticator&item_number=Google%20Authenticator&no_shipping=0&no_note=1&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8) for writing/maintaining versions 0.20 through 0.48
-
-[Tobias Bäthge](http://tobias.baethge.com/) for his code rewrite and German translation.
-
-[Pascal de Bruijn](http://blog.pcode.nl/) for his "relaxed mode" idea.
-
-[Daniel Werl](http://technobabbl.es/) for his usability tips.
-
-[Dion Hulse](http://dd32.id.au/) for his bugfixes.
-
-[Aldo Latino](http://profiles.wordpress.org/users/aldolat/) for his Italian translation.
-
-[Kaijia Feng](http://www.kaijia.me/) for his Simplified Chinese translation.
-
-[Alex Concha](http://www.buayacorp.com/) for his security tips.
-
-[Jerome Etienne](http://jetienne.com/) for his jquery-qrcode plugin.
-
-[Sébastien Prunier](http://orizhial.com/) for his Spanish and French translation.
diff --git a/plugins/google-authenticator/screenshot-1.jpg b/plugins/google-authenticator/screenshot-1.jpg
deleted file mode 100644
index 252831f3..00000000
--- a/plugins/google-authenticator/screenshot-1.jpg
+++ /dev/null
Binary files differ
diff --git a/plugins/google-authenticator/screenshot-2.jpg b/plugins/google-authenticator/screenshot-2.jpg
deleted file mode 100644
index 13bb25c2..00000000
--- a/plugins/google-authenticator/screenshot-2.jpg
+++ /dev/null
Binary files differ
diff --git a/plugins/google-authenticator/screenshot-3.jpg b/plugins/google-authenticator/screenshot-3.jpg
deleted file mode 100644
index b74aeae5..00000000
--- a/plugins/google-authenticator/screenshot-3.jpg
+++ /dev/null
Binary files differ
diff --git a/plugins/google-authenticator/screenshot-4.jpg b/plugins/google-authenticator/screenshot-4.jpg
deleted file mode 100644
index 804f3cad..00000000
--- a/plugins/google-authenticator/screenshot-4.jpg
+++ /dev/null
Binary files differ
diff --git a/plugins/google-authenticator/screenshot-5.jpg b/plugins/google-authenticator/screenshot-5.jpg
deleted file mode 100644
index 1b396294..00000000
--- a/plugins/google-authenticator/screenshot-5.jpg
+++ /dev/null
Binary files differ