Changeset 2464679
- Timestamp:
- 01/29/2021 05:58:32 AM (5 years ago)
- Location:
- true-factor-auth
- Files:
-
- 7 edited
- 8 copied
-
tags/1.0.4/trunk (copied) (copied from true-factor-auth/trunk)
-
tags/1.0.4/trunk/readme.txt (copied) (copied from true-factor-auth/trunk/readme.txt)
-
tags/1.0.4/trunk/src/Helper/GetUserByLogPwdTrait.php (modified) (2 diffs)
-
tags/1.0.4/trunk/src/Module/TwoFactorLoginModule.php (modified) (2 diffs)
-
tags/1.0.4/trunk/src/PhoneNumber.php (copied) (copied from true-factor-auth/trunk/src/PhoneNumber.php)
-
tags/1.0.4/trunk/true-factor-auth.php (copied) (copied from true-factor-auth/trunk/true-factor-auth.php) (1 diff)
-
tags/1.0.5 (copied) (copied from true-factor-auth/trunk)
-
tags/1.0.5/readme.txt (copied) (copied from true-factor-auth/trunk/readme.txt)
-
tags/1.0.5/src/Helper/GetUserByLogPwdTrait.php (modified) (2 diffs)
-
tags/1.0.5/src/Module/TwoFactorLoginModule.php (modified) (2 diffs)
-
tags/1.0.5/src/PhoneNumber.php (copied) (copied from true-factor-auth/trunk/src/PhoneNumber.php)
-
tags/1.0.5/true-factor-auth.php (copied) (copied from true-factor-auth/trunk/true-factor-auth.php) (1 diff)
-
trunk/src/Helper/GetUserByLogPwdTrait.php (modified) (2 diffs)
-
trunk/src/Module/TwoFactorLoginModule.php (modified) (2 diffs)
-
trunk/true-factor-auth.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
true-factor-auth/tags/1.0.4/trunk/src/Helper/GetUserByLogPwdTrait.php
r2382833 r2464679 7 7 function get_user_by_login_password() { 8 8 if ( empty( $_POST['log'] ) || empty( $_POST['pwd'] ) 9 || ! is_string( $_POST['log'] ) || ! is_string( $_POST['pwd'] ) ) { 9 || ! is_string( $_POST['log'] ) 10 || ! is_string( $_POST['pwd'] ) 11 ) { 10 12 $this->return_error( "Enter login and password" ); 11 13 } … … 14 16 15 17 if ( is_wp_error( $user ) ) { 16 $this->return_error( $user->get_error_message() ); 18 $user = wp_authenticate_email_password( null, $_POST['log'], $_POST['pwd'] ); 19 if ( is_wp_error( $user ) ) { 20 $this->return_error( $user->get_error_message() ); 21 } 17 22 } 18 23 if ( ! $user->ID ) { -
true-factor-auth/tags/1.0.4/trunk/src/Module/TwoFactorLoginModule.php
r2382833 r2464679 279 279 280 280 'login_2fa_form_selector' => [ 281 'label' => 'Custom Login Form Selectors',282 'attrs' => [281 'label' => 'Custom Login Form Selectors', 282 'attrs' => [ 283 283 'type' => 'textarea', 284 284 'rows' => 9, … … 297 297 </div>', 298 298 ], 299 '_rules' => [299 '_rules' => [ 300 300 function ( $val ) { 301 301 if ( ! $val ) { -
true-factor-auth/tags/1.0.4/trunk/true-factor-auth.php
r2464666 r2464679 4 4 * Plugin Name: True Factor Auth 5 5 * Description: Restrict access to any content or feature on your site; Add two-factor authorisation to your login forms and other pages; Allow users to login using one-time SMS pass-code. Verification methods include SMS one-time password and Google Authenticator. 6 * Version: 1.0. 46 * Version: 1.0.5 7 7 * Requires at least: 5.4 8 8 * Tested up to: 5.6 -
true-factor-auth/tags/1.0.5/src/Helper/GetUserByLogPwdTrait.php
r2382833 r2464679 7 7 function get_user_by_login_password() { 8 8 if ( empty( $_POST['log'] ) || empty( $_POST['pwd'] ) 9 || ! is_string( $_POST['log'] ) || ! is_string( $_POST['pwd'] ) ) { 9 || ! is_string( $_POST['log'] ) 10 || ! is_string( $_POST['pwd'] ) 11 ) { 10 12 $this->return_error( "Enter login and password" ); 11 13 } … … 14 16 15 17 if ( is_wp_error( $user ) ) { 16 $this->return_error( $user->get_error_message() ); 18 $user = wp_authenticate_email_password( null, $_POST['log'], $_POST['pwd'] ); 19 if ( is_wp_error( $user ) ) { 20 $this->return_error( $user->get_error_message() ); 21 } 17 22 } 18 23 if ( ! $user->ID ) { -
true-factor-auth/tags/1.0.5/src/Module/TwoFactorLoginModule.php
r2382833 r2464679 279 279 280 280 'login_2fa_form_selector' => [ 281 'label' => 'Custom Login Form Selectors',282 'attrs' => [281 'label' => 'Custom Login Form Selectors', 282 'attrs' => [ 283 283 'type' => 'textarea', 284 284 'rows' => 9, … … 297 297 </div>', 298 298 ], 299 '_rules' => [299 '_rules' => [ 300 300 function ( $val ) { 301 301 if ( ! $val ) { -
true-factor-auth/tags/1.0.5/true-factor-auth.php
r2464666 r2464679 4 4 * Plugin Name: True Factor Auth 5 5 * Description: Restrict access to any content or feature on your site; Add two-factor authorisation to your login forms and other pages; Allow users to login using one-time SMS pass-code. Verification methods include SMS one-time password and Google Authenticator. 6 * Version: 1.0. 46 * Version: 1.0.5 7 7 * Requires at least: 5.4 8 8 * Tested up to: 5.6 -
true-factor-auth/trunk/src/Helper/GetUserByLogPwdTrait.php
r2382833 r2464679 7 7 function get_user_by_login_password() { 8 8 if ( empty( $_POST['log'] ) || empty( $_POST['pwd'] ) 9 || ! is_string( $_POST['log'] ) || ! is_string( $_POST['pwd'] ) ) { 9 || ! is_string( $_POST['log'] ) 10 || ! is_string( $_POST['pwd'] ) 11 ) { 10 12 $this->return_error( "Enter login and password" ); 11 13 } … … 14 16 15 17 if ( is_wp_error( $user ) ) { 16 $this->return_error( $user->get_error_message() ); 18 $user = wp_authenticate_email_password( null, $_POST['log'], $_POST['pwd'] ); 19 if ( is_wp_error( $user ) ) { 20 $this->return_error( $user->get_error_message() ); 21 } 17 22 } 18 23 if ( ! $user->ID ) { -
true-factor-auth/trunk/src/Module/TwoFactorLoginModule.php
r2382833 r2464679 279 279 280 280 'login_2fa_form_selector' => [ 281 'label' => 'Custom Login Form Selectors',282 'attrs' => [281 'label' => 'Custom Login Form Selectors', 282 'attrs' => [ 283 283 'type' => 'textarea', 284 284 'rows' => 9, … … 297 297 </div>', 298 298 ], 299 '_rules' => [299 '_rules' => [ 300 300 function ( $val ) { 301 301 if ( ! $val ) { -
true-factor-auth/trunk/true-factor-auth.php
r2464666 r2464679 4 4 * Plugin Name: True Factor Auth 5 5 * Description: Restrict access to any content or feature on your site; Add two-factor authorisation to your login forms and other pages; Allow users to login using one-time SMS pass-code. Verification methods include SMS one-time password and Google Authenticator. 6 * Version: 1.0. 46 * Version: 1.0.5 7 7 * Requires at least: 5.4 8 8 * Tested up to: 5.6
Note: See TracChangeset
for help on using the changeset viewer.