Changeset 830737
- Timestamp:
- 12/31/2013 10:48:08 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
google-authenticator/trunk/google-authenticator.php
r830429 r830737 184 184 185 185 // Get the verification code entered by the user trying to login 186 $otp = trim( $_POST[ 'googleotp' ] ); 187 186 if ( !empty( $_POST['googleotp'] )) { // Prevent PHP notices when using app password login 187 $otp = trim( $_POST[ 'googleotp' ] ); 188 } else { 189 $otp = ''; 190 } 188 191 // Valid code ? 189 192 if ( $this->verify( $GA_secret, $otp, $GA_relaxedmode ) ) {
Note: See TracChangeset
for help on using the changeset viewer.