summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2025-08-29 13:20:53 +0100
committerlsces <lester@lsces.co.uk>2025-08-29 13:20:53 +0100
commit74f9d1ec51bad4f0a86ea51dd51c9ebcc48383d0 (patch)
treecdfd1d088360014326de39c07ffff7bf8d7a922a /auth
parentd388cface6a2f2bc7368fa21d8cb6be2e7179f27 (diff)
downloadusers-74f9d1ec51bad4f0a86ea51dd51c9ebcc48383d0.tar.gz
users-74f9d1ec51bad4f0a86ea51dd51c9ebcc48383d0.tar.bz2
users-74f9d1ec51bad4f0a86ea51dd51c9ebcc48383d0.zip
Auth bits updated to PHP8.4 and namespace, but only bituser auth working
Diffstat (limited to 'auth')
-rwxr-xr-x[-rw-r--r--]auth/bit/auth.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/auth/bit/auth.php b/auth/bit/auth.php
index d010a93..17e118e 100644..100755
--- a/auth/bit/auth.php
+++ b/auth/bit/auth.php
@@ -11,13 +11,16 @@
* @package users
* @subpackage auth
*/
+
+namespace Bitweaver\Users;
+
class BitAuth extends BaseAuth {
- function __construct() {
+ public function __construct() {
parent::__construct('bit');
}
- function validate($user,$pass,$challenge,$response) {
+ public function validate($user,$pass,$challenge,$response) {
parent::validate($user,$pass,$challenge,$response);
global $gBitSystem;
global $gBitDb;
@@ -85,20 +88,20 @@ class BitAuth extends BaseAuth {
$this->mInfo['user_id']=$userId;
}
}
- return( $ret );
+ return $ret;
}
- function canManageAuth() {
+ public function canManageAuth() {
return true;
}
- function isSupported() {
+ public function isSupported() {
return true;
}
- function createUser( &$pUserHash ) {
+ public function createUser( &$pUserHash ) {
//$authUserInfo = array( 'login' => $instance->mInfo['login'], 'password' => $instance->mInfo['password'], 'real_name' => $instance->mInfo['real_name'], 'email' => $instance->mInfo['email'] );
- $u = new BitPermUser();
+ $u = new RolePermUser();
if( !$u->store( $pUserHash ) ) {
$this->mErrors = array_merge($this->mErrors,$u->mErrors);