summaryrefslogtreecommitdiff
path: root/validate.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:55:19 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:55:19 +0100
commit513bc9e03522f0bfc0e307a8e40a517e746de2bc (patch)
treebed44d24c1ef1ee8d3801b74fe0fac68e1f779f4 /validate.php
parent70ebf6a972f511a904a7775ec792dc2523bf3e13 (diff)
downloadusers-513bc9e03522f0bfc0e307a8e40a517e746de2bc.tar.gz
users-513bc9e03522f0bfc0e307a8e40a517e746de2bc.tar.bz2
users-513bc9e03522f0bfc0e307a8e40a517e746de2bc.zip
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'validate.php')
-rwxr-xr-xvalidate.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/validate.php b/validate.php
index cbe7dbd..dd91b29 100755
--- a/validate.php
+++ b/validate.php
@@ -8,12 +8,9 @@
* @subpackage functions
*/
-
namespace Bitweaver;
-use Bitweaver\KernelTools;
+
use Bitweaver\Users\BitHybridAuthManager;
-use Bitweaver\Users\RolePermUser;
-use Bitweaver\Users\UserRepository;
/**
* this is a dirty hack to allow admins to log in when we require a visit to the installer
@@ -99,7 +96,7 @@ if( !empty( $_REQUEST['provider'] ) ) {
$pRegisterHash['customers_dob'] = ($auth->birthYear ? $auth->birthYear : 1900).'-'.$auth->birthMonth.'-'.$auth->birthDay;
}
$prefId = $gBitHybridAuthManager->getConfigName( $_REQUEST['provider'], 'id' );
- $_SESSION['returnto'] = $_SERVER['SCRIPT_URI'].'?provider='.$_REQUEST['provider'].'&auth_login=1';
+ $_SESSION['returnto'] = $_SERVER['SCRIPT_URI'].'?provider='.$_REQUEST['provider'].'&auth_login=1';
include USERS_PKG_INCLUDE_PATH.'register_inc.php';
}
}
@@ -129,7 +126,7 @@ if( !empty( $_REQUEST['provider'] ) ) {
default: $authError = $e->getMessage();
break;
}
-
+
$gBitSmarty->assign( 'authError', $authError );
$gBitSmarty->assign( 'authExpection', $e );
bit_error_log( $authError );
@@ -152,7 +149,6 @@ if( !empty( $tpl ) ) {
} elseif(( strpos( $redirectUrl, 'signin.php?' ) || strpos( $redirectUrl, 'remind_password.php' )) && strpos( $redirectUrl, 'signin.php?error=' ) == -1 ) {
// but if we came from a login page, let's go home (except if we got an error when login in)
$redirectUrl = $gBitUser->getPostLoginUrl();
-} else {
}
if( !empty( $redirectUrl ) ) {