Google Authenticator - Version 0.42

Version Description

  • Autocomplete disabled on code input field. (Feature request by : hiphopsmurf)
Download this release

Release Info

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

Code changes from version 0.41 to 0.42

Files changed (2) hide show
  1. google-authenticator.php +13 -2
  2. readme.txt +5 -2
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.41
8
  Author URI: http://henrik.schack.dk/
9
- Compatibility: WordPress 3.3.2
10
  Text Domain: google-authenticator
11
  Domain Path: /lang
12
 
@@ -57,6 +57,7 @@ function init() {
57
  require_once( 'base32.php' );
58
 
59
  add_action( 'login_form', array( $this, 'loginform' ) );
 
60
  add_filter( 'authenticate', array( $this, 'check_otp' ), 50, 3 );
61
 
62
  if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
@@ -136,6 +137,16 @@ function loginform() {
136
  echo "\t</p>\n";
137
  }
138
 
 
 
 
 
 
 
 
 
 
 
139
 
140
  /**
141
  * Login form handling.
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.42
8
  Author URI: http://henrik.schack.dk/
9
+ Compatibility: WordPress 3.4.1
10
  Text Domain: google-authenticator
11
  Domain Path: /lang
12
 
57
  require_once( 'base32.php' );
58
 
59
  add_action( 'login_form', array( $this, 'loginform' ) );
60
+ add_action( 'login_footer', array( $this, 'loginfooter' ) );
61
  add_filter( 'authenticate', array( $this, 'check_otp' ), 50, 3 );
62
 
63
  if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
137
  echo "\t</p>\n";
138
  }
139
 
140
+ /**
141
+ * Disable autocomplete on Google Authenticator code input field.
142
+ */
143
+ function loginfooter() {
144
+ echo "\n<script type=\"text/javascript\">\n";
145
+ echo "\ttry{\n";
146
+ echo "\t\tdocument.getElementById('user_email').setAttribute('autocomplete','off');\n";
147
+ echo "\t} catch(e){}\n";
148
+ echo "</script>\n";
149
+ }
150
 
151
  /**
152
  * Login form handling.
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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.1.2
6
- Tested up to: 3.3.2
7
- Stable tag: 0.41
8
 
9
  Google Authenticator for your WordPress blog.
10
 
@@ -58,6 +58,9 @@ Another option is to enable "relaxed mode" in the settings for the plugin, this
58
 
59
  == Changelog ==
60
 
 
 
 
61
  = 0.41 =
62
  * Italian translation by Aldo Latino added.
63
 
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.1.2
6
+ Tested up to: 3.4.1
7
+ Stable tag: 0.42
8
 
9
  Google Authenticator for your WordPress blog.
10
 
58
 
59
  == Changelog ==
60
 
61
+ = 0.42 =
62
+ * Autocomplete disabled on code input field. (Feature request by : hiphopsmurf)
63
+
64
  = 0.41 =
65
  * Italian translation by Aldo Latino added.
66