Google Authenticator - Version 0.48

Version Description

  • Security fix / compatability with WordPress 4.5
Download this release

Release Info

Developer Henrik.Schack
Plugin Icon wp plugin Google Authenticator
Version 0.48
Comparing to
See all releases

Code changes from version 0.47 to 0.48

google-authenticator.php CHANGED
@@ -4,9 +4,9 @@ Plugin Name: Google Authenticator
4
  Plugin URI: http://henrik.schack.dk/google-authenticator-for-wordpress
5
  Description: Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry app as One Time Password generator.
6
  Author: Henrik Schack
7
- Version: 0.47
8
  Author URI: http://henrik.schack.dk/
9
- Compatibility: WordPress 3.8
10
  Text Domain: google-authenticator
11
  Domain Path: /lang
12
 
@@ -193,7 +193,11 @@ function check_otp( $user, $username = '', $password = '' ) {
193
 
194
  // Get information on user, we need this in case an app password has been enabled,
195
  // since the $user var only contain an error at this point in the login flow.
196
- $user = get_user_by( 'login', $username );
 
 
 
 
197
 
198
  // Does the user have the Google Authenticator enabled ?
199
  if ( isset( $user->ID ) && trim(get_user_option( 'googleauthenticator_enabled', $user->ID ) ) == 'enabled' ) {
@@ -542,4 +546,4 @@ function ajax_callback() {
542
  } // end class
543
 
544
  $google_authenticator = new GoogleAuthenticator;
545
- ?>
4
  Plugin URI: http://henrik.schack.dk/google-authenticator-for-wordpress
5
  Description: Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry app as One Time Password generator.
6
  Author: Henrik Schack
7
+ Version: 0.48
8
  Author URI: http://henrik.schack.dk/
9
+ Compatibility: WordPress 4.5
10
  Text Domain: google-authenticator
11
  Domain Path: /lang
12
 
193
 
194
  // Get information on user, we need this in case an app password has been enabled,
195
  // since the $user var only contain an error at this point in the login flow.
196
+ if ( get_user_by( 'email', $username ) === false ) {
197
+ $user = get_user_by( 'login', $username );
198
+ } else {
199
+ $user = get_user_by( 'email', $username );
200
+ }
201
 
202
  // Does the user have the Google Authenticator enabled ?
203
  if ( isset( $user->ID ) && trim(get_user_option( 'googleauthenticator_enabled', $user->ID ) ) == 'enabled' ) {
546
  } // end class
547
 
548
  $google_authenticator = new GoogleAuthenticator;
549
+ ?>
lang/google-authenticator-it_IT.mo CHANGED
Binary file
lang/google-authenticator-it_IT.po CHANGED
@@ -1,22 +1,22 @@
1
  # Copyright (C) 2010 Google Authenticator
2
  # This file is distributed under the same license as the Google Authenticator package.
3
- # Aldo Latino <aldolat@gmail.com>, 2012.
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Google Authenticator 0.37\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/google-authenticator\n"
8
- "POT-Creation-Date: 2011-08-21 14:25:45+00:00\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2012-05-24 23:12+0200\n"
13
  "Last-Translator: Aldo Latino <aldolat@gmail.com>\n"
14
  "Language-Team: Italian <kde-i18n-it@kde.org>\n"
15
  "Language: it\n"
 
 
 
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
- "X-Generator: Lokalize 1.4\n"
18
 
19
- #: google-authenticator.php:131
20
  msgid ""
21
  "If you don't have Google Authenticator enabled for your WordPress account, "
22
  "leave this field empty."
@@ -24,40 +24,40 @@ msgstr ""
24
  "Se Google Authenticator non è attivo per il tuo account WordPress, lascia "
25
  "vuoto questo campo."
26
 
27
- #: google-authenticator.php:131
28
  msgid "Google Authenticator code"
29
  msgstr "Codice di Google Authenticator"
30
 
31
- #: google-authenticator.php:176
32
  msgid "<strong>ERROR</strong>: The Google Authenticator password is incorrect."
33
  msgstr ""
34
  "<strong>ERRORE</strong>: la password di Google Authenticator non è corretta.."
35
 
36
- #: google-authenticator.php:179
37
  msgid ""
38
  "<strong>ERROR</strong>: The Google Authenticator code is incorrect or has "
39
  "expired."
40
  msgstr ""
41
- "<strong>ERRORE</strong>: Il codice di Google Authenticator non è corretta o è "
42
- "scaduto."
43
 
44
- #: google-authenticator.php:215
45
- msgid "WordPress Blog"
46
  msgstr "WordPress Blog"
47
 
48
- #: google-authenticator.php:218 google-authenticator.php:392
49
  msgid "Google Authenticator Settings"
50
  msgstr "Impostazioni di Google Authenticator"
51
 
52
- #: google-authenticator.php:223 google-authenticator.php:396
53
  msgid "Active"
54
- msgstr "Attiva"
55
 
56
- #: google-authenticator.php:235
57
  msgid "Relaxed mode"
58
  msgstr "Modalità comoda"
59
 
60
- #: google-authenticator.php:237
61
  msgid ""
62
  " Relaxed mode allows for more time drifting on your phone clock (&#177;4 "
63
  "min)."
@@ -65,53 +65,57 @@ msgstr ""
65
  " La modalità comoda permette uno scostamento di tempo più esteso rispetto "
66
  "all'orologio del telefono (&#177;4 min)."
67
 
68
- #: google-authenticator.php:242
69
  msgid "Description"
70
  msgstr "Descrizione"
71
 
72
- #: google-authenticator.php:243
73
  msgid ""
74
  " Description that you'll see in the Google Authenticator app on your phone."
75
  msgstr ""
76
  " La descrizione che si vede nell'app Google Authenticator sul telefono."
77
 
78
- #: google-authenticator.php:247
79
  msgid "Secret"
80
  msgstr "Chiave segreta"
81
 
82
- #: google-authenticator.php:250
83
  msgid "Create new secret"
84
  msgstr "Crea una nuova chiave segreta"
85
 
86
- #: google-authenticator.php:251
87
  msgid "Show/Hide QR code"
88
  msgstr "Mostra/nascondi il codice QR"
89
 
90
- #: google-authenticator.php:259
91
  msgid "Scan this with the Google Authenticator app."
92
  msgstr "Effettua la scansione con l'app Google Authenticator."
93
 
94
- #: google-authenticator.php:264
95
  msgid "Enable App password"
96
  msgstr "Abilita la password delle App"
97
 
98
- #: google-authenticator.php:266
99
  msgid " Enabling an App password will decrease your overall login security."
100
  msgstr ""
101
  " L'abilitazione della password delle App abbasserà il livello di sicurezza "
102
  "generale del login."
103
 
104
- #: google-authenticator.php:274
105
  msgid "Create new password"
106
  msgstr "Crea una nuova password"
107
 
108
- #: google-authenticator.php:275
109
  msgid ""
110
  " Password is not stored in cleartext, this is your only chance to see it."
111
  msgstr ""
112
  " La password non è conservata in chiaro: questo l'unico momento in cui la si "
113
  "può vedere."
114
 
 
 
 
 
115
  #. Plugin Name of the plugin/theme
116
  msgid "Google Authenticator"
117
  msgstr "Google Authenticator"
@@ -125,8 +129,8 @@ msgid ""
125
  "Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry "
126
  "app as One Time Password generator."
127
  msgstr ""
128
- "Autenticazione a due fattori per WordPress utilizzando un'app su "
129
- "Android/iPhone/Blackberry come generatore di Password usa-e-getta."
130
 
131
  #. Author of the plugin/theme
132
  msgid "Henrik Schack"
@@ -136,3 +140,4 @@ msgstr "Henrik Schack"
136
  msgid "http://henrik.schack.dk/"
137
  msgstr "http://henrik.schack.dk/"
138
 
 
1
  # Copyright (C) 2010 Google Authenticator
2
  # This file is distributed under the same license as the Google Authenticator package.
3
+ # Aldo Latino <aldolat@gmail.com>, 2012, 2014.
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Google Authenticator 0.37\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/google-authenticator\n"
8
+ "POT-Creation-Date: 2014-01-11 07:14:22+00:00\n"
9
+ "PO-Revision-Date: 2014-01-12 21:24+0100\n"
 
 
 
10
  "Last-Translator: Aldo Latino <aldolat@gmail.com>\n"
11
  "Language-Team: Italian <kde-i18n-it@kde.org>\n"
12
  "Language: it\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "X-Generator: Lokalize 1.5\n"
18
 
19
+ #: google-authenticator.php:166
20
  msgid ""
21
  "If you don't have Google Authenticator enabled for your WordPress account, "
22
  "leave this field empty."
24
  "Se Google Authenticator non è attivo per il tuo account WordPress, lascia "
25
  "vuoto questo campo."
26
 
27
+ #: google-authenticator.php:166
28
  msgid "Google Authenticator code"
29
  msgstr "Codice di Google Authenticator"
30
 
31
+ #: google-authenticator.php:231
32
  msgid "<strong>ERROR</strong>: The Google Authenticator password is incorrect."
33
  msgstr ""
34
  "<strong>ERRORE</strong>: la password di Google Authenticator non è corretta.."
35
 
36
+ #: google-authenticator.php:234
37
  msgid ""
38
  "<strong>ERROR</strong>: The Google Authenticator code is incorrect or has "
39
  "expired."
40
  msgstr ""
41
+ "<strong>ERRORE</strong>: Il codice di Google Authenticator non è corretto o "
42
+ "è scaduto."
43
 
44
+ #: google-authenticator.php:274
45
+ msgid "WordPressBlog"
46
  msgstr "WordPress Blog"
47
 
48
+ #: google-authenticator.php:277 google-authenticator.php:469
49
  msgid "Google Authenticator Settings"
50
  msgstr "Impostazioni di Google Authenticator"
51
 
52
+ #: google-authenticator.php:282 google-authenticator.php:481
53
  msgid "Active"
54
+ msgstr "Attivo"
55
 
56
+ #: google-authenticator.php:290
57
  msgid "Relaxed mode"
58
  msgstr "Modalità comoda"
59
 
60
+ #: google-authenticator.php:292
61
  msgid ""
62
  " Relaxed mode allows for more time drifting on your phone clock (&#177;4 "
63
  "min)."
65
  " La modalità comoda permette uno scostamento di tempo più esteso rispetto "
66
  "all'orologio del telefono (&#177;4 min)."
67
 
68
+ #: google-authenticator.php:297
69
  msgid "Description"
70
  msgstr "Descrizione"
71
 
72
+ #: google-authenticator.php:298
73
  msgid ""
74
  " Description that you'll see in the Google Authenticator app on your phone."
75
  msgstr ""
76
  " La descrizione che si vede nell'app Google Authenticator sul telefono."
77
 
78
+ #: google-authenticator.php:302
79
  msgid "Secret"
80
  msgstr "Chiave segreta"
81
 
82
+ #: google-authenticator.php:305
83
  msgid "Create new secret"
84
  msgstr "Crea una nuova chiave segreta"
85
 
86
+ #: google-authenticator.php:306
87
  msgid "Show/Hide QR code"
88
  msgstr "Mostra/nascondi il codice QR"
89
 
90
+ #: google-authenticator.php:315
91
  msgid "Scan this with the Google Authenticator app."
92
  msgstr "Effettua la scansione con l'app Google Authenticator."
93
 
94
+ #: google-authenticator.php:320
95
  msgid "Enable App password"
96
  msgstr "Abilita la password delle App"
97
 
98
+ #: google-authenticator.php:322
99
  msgid " Enabling an App password will decrease your overall login security."
100
  msgstr ""
101
  " L'abilitazione della password delle App abbasserà il livello di sicurezza "
102
  "generale del login."
103
 
104
+ #: google-authenticator.php:330
105
  msgid "Create new password"
106
  msgstr "Crea una nuova password"
107
 
108
+ #: google-authenticator.php:331
109
  msgid ""
110
  " Password is not stored in cleartext, this is your only chance to see it."
111
  msgstr ""
112
  " La password non è conservata in chiaro: questo l'unico momento in cui la si "
113
  "può vedere."
114
 
115
+ #: google-authenticator.php:474
116
+ msgid "Hide settings from user"
117
+ msgstr "Nascondi le impostazioni agli utenti"
118
+
119
  #. Plugin Name of the plugin/theme
120
  msgid "Google Authenticator"
121
  msgstr "Google Authenticator"
129
  "Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry "
130
  "app as One Time Password generator."
131
  msgstr ""
132
+ "Autenticazione a due fattori per WordPress utilizzando un'app su Android/"
133
+ "iPhone/Blackberry come generatore di Password usa-e-getta."
134
 
135
  #. Author of the plugin/theme
136
  msgid "Henrik Schack"
140
  msgid "http://henrik.schack.dk/"
141
  msgstr "http://henrik.schack.dk/"
142
 
143
+
lang/google-authenticator-zh_CN.mo CHANGED
Binary file
lang/google-authenticator-zh_CN.po ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Google Authenticator
2
+ # This file is distributed under the same license as the Google Authenticator package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Google Authenticator 0.37\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/google-authenticator\n"
7
+ "POT-Creation-Date: 2014-01-11 07:14:22+00:00\n"
8
+ "PO-Revision-Date: 2014-01-13 13:48+0800\n"
9
+ "Last-Translator: Kaijia Feng <fengkaijia@gmail.com>\n"
10
+ "Language-Team: \n"
11
+ "Language: zh_CN\n"
12
+ "MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=UTF-8\n"
14
+ "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 1.5.5\n"
16
+
17
+ #: google-authenticator.php:166
18
+ msgid ""
19
+ "If you don't have Google Authenticator enabled for your WordPress account, "
20
+ "leave this field empty."
21
+ msgstr "如果您的帐号没有启用Google Authenticator身份验证功能,请不必填写此栏。"
22
+
23
+ #: google-authenticator.php:166
24
+ msgid "Google Authenticator code"
25
+ msgstr "Google Authenticator验证码"
26
+
27
+ #: google-authenticator.php:231
28
+ msgid "<strong>ERROR</strong>: The Google Authenticator password is incorrect."
29
+ msgstr "<strong>错误</strong>:Google Authenticator验证码有误。"
30
+
31
+ #: google-authenticator.php:234
32
+ msgid ""
33
+ "<strong>ERROR</strong>: The Google Authenticator code is incorrect or has "
34
+ "expired."
35
+ msgstr "<strong>错误</strong>:Google Authenticator验证码有误或者已经失效。"
36
+
37
+ #: google-authenticator.php:274
38
+ msgid "WordPressBlog"
39
+ msgstr "WordPressBlog"
40
+
41
+ #: google-authenticator.php:277 google-authenticator.php:469
42
+ msgid "Google Authenticator Settings"
43
+ msgstr "Google Authenticator设置"
44
+
45
+ #: google-authenticator.php:282 google-authenticator.php:481
46
+ msgid "Active"
47
+ msgstr "启用"
48
+
49
+ #: google-authenticator.php:290
50
+ msgid "Relaxed mode"
51
+ msgstr "宽松模式"
52
+
53
+ #: google-authenticator.php:292
54
+ msgid ""
55
+ " Relaxed mode allows for more time drifting on your phone clock (&#177;4 "
56
+ "min)."
57
+ msgstr " 在宽松模式下你可以有更长的时间输入验证码(&#177;4分钟)。"
58
+
59
+ #: google-authenticator.php:297
60
+ msgid "Description"
61
+ msgstr "描述"
62
+
63
+ #: google-authenticator.php:298
64
+ msgid ""
65
+ " Description that you'll see in the Google Authenticator app on your phone."
66
+ msgstr " 在Google Authenticator应用中显示的帐户描述。"
67
+
68
+ #: google-authenticator.php:302
69
+ msgid "Secret"
70
+ msgstr "密钥"
71
+
72
+ #: google-authenticator.php:305
73
+ msgid "Create new secret"
74
+ msgstr "创建新密钥"
75
+
76
+ #: google-authenticator.php:306
77
+ msgid "Show/Hide QR code"
78
+ msgstr "显示/隐藏QR码"
79
+
80
+ #: google-authenticator.php:315
81
+ msgid "Scan this with the Google Authenticator app."
82
+ msgstr "使用Google Authenticator应用扫描此图像。"
83
+
84
+ #: google-authenticator.php:320
85
+ msgid "Enable App password"
86
+ msgstr "启用应用专用密码"
87
+
88
+ #: google-authenticator.php:322
89
+ msgid " Enabling an App password will decrease your overall login security."
90
+ msgstr " 启用应用专用密码将会在总体上降低登录的安全性。"
91
+
92
+ #: google-authenticator.php:330
93
+ msgid "Create new password"
94
+ msgstr "创建新密码"
95
+
96
+ #: google-authenticator.php:331
97
+ msgid ""
98
+ " Password is not stored in cleartext, this is your only chance to see it."
99
+ msgstr " 密码将不会明文储存,这将是你唯一一次看见密码。"
100
+
101
+ #: google-authenticator.php:474
102
+ msgid "Hide settings from user"
103
+ msgstr "不对用户显示设置"
104
+
105
+ #. Plugin Name of the plugin/theme
106
+ msgid "Google Authenticator"
107
+ msgstr "Google Authenticator"
108
+
109
+ #. Plugin URI of the plugin/theme
110
+ msgid "http://henrik.schack.dk/google-authenticator-for-wordpress"
111
+ msgstr "http://henrik.schack.dk/google-authenticator-for-wordpress"
112
+
113
+ #. Description of the plugin/theme
114
+ msgid ""
115
+ "Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry "
116
+ "app as One Time Password generator."
117
+ msgstr ""
118
+ "使用Android/iPhone/Blackberry一次性密码生成应用为WordPress提供两步验证。"
119
+
120
+ #. Author of the plugin/theme
121
+ msgid "Henrik Schack"
122
+ msgstr "Henrik Schack"
123
+
124
+ #. Author URI of the plugin/theme
125
+ msgid "http://henrik.schack.dk/"
126
+ msgstr "http://henrik.schack.dk/"
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: Henrik.Schack
3
  Donate Link: 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
4
  Tags: authentication,otp,password,security,login,android,iphone,blackberry
5
- Requires at least: 3.8
6
- Tested up to: 3.8.1
7
- Stable tag: 0.47
8
 
9
  Google Authenticator for your WordPress blog.
10
 
@@ -79,6 +79,8 @@ please remember to remove the "Check credentials on all login attempts" checkmar
79
  4. Google Authenticator app on Android
80
 
81
  == Changelog ==
 
 
82
 
83
  = 0.47 =
84
  * Google chart API replaced with jquery-qrcode
@@ -165,4 +167,4 @@ Thanks to:
165
 
166
  [Jerome Etienne](http://jetienne.com/) for his jquery-qrcode plugin.
167
 
168
- [Sébastien Prunier](http://orizhial.com/) for his Spanish and French translation.
2
  Contributors: Henrik.Schack
3
  Donate Link: 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
4
  Tags: authentication,otp,password,security,login,android,iphone,blackberry
5
+ Requires at least: 4.5
6
+ Tested up to: 4.7
7
+ Stable tag: 0.48
8
 
9
  Google Authenticator for your WordPress blog.
10
 
79
  4. Google Authenticator app on Android
80
 
81
  == Changelog ==
82
+ = 0.48 =
83
+ * Security fix / compatability with WordPress 4.5
84
 
85
  = 0.47 =
86
  * Google chart API replaced with jquery-qrcode
167
 
168
  [Jerome Etienne](http://jetienne.com/) for his jquery-qrcode plugin.
169
 
170
+ [Sébastien Prunier](http://orizhial.com/) for his Spanish and French translation.