@fleetbase/registry-bridge-engine 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/composer.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbase/registry-bridge",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Internal Bridge between Fleetbase API and Extensions Registry",
5
5
  "keywords": [
6
6
  "fleetbase-extension",
package/extension.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Registry Bridge",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Internal Bridge between Fleetbase API and Extensions Registry",
5
5
  "repository": "https://github.com/fleetbase/registry-bridge",
6
6
  "license": "AGPL-3.0-or-later",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetbase/registry-bridge-engine",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Internal Bridge between Fleetbase API and Extensions Registry",
5
5
  "fleetbase": {
6
6
  "route": "extensions"
@@ -94,7 +94,7 @@ class RegistryAuthController extends Controller
94
94
  $query->where('email', $identity)->orWhere('phone', $identity)->orWhere('username', $identity);
95
95
  })->first();
96
96
 
97
- if ($user && Auth::isValidPassword($password, $user->password)) {
97
+ if ($user && Auth::checkPassword($password, $user->password)) {
98
98
  // Cloud user authentication
99
99
  $registryUser = RegistryUser::firstOrCreate(
100
100
  [
@@ -22,7 +22,7 @@ class AddRegistryUserRequest extends FleetbaseRequest
22
22
  */
23
23
  public function authorize()
24
24
  {
25
- return session('is_admin') === true;
25
+ return true;
26
26
  }
27
27
 
28
28
  /**
@@ -22,7 +22,7 @@ class AuthenticateRegistryUserRequest extends FleetbaseRequest
22
22
  */
23
23
  public function authorize()
24
24
  {
25
- return session('is_admin') === true;
25
+ return true;
26
26
  }
27
27
 
28
28
  /**
@@ -23,7 +23,7 @@ class RegistryAuthRequest extends FleetbaseRequest
23
23
  */
24
24
  public function authorize()
25
25
  {
26
- return session('is_admin') === true;
26
+ return true;
27
27
  }
28
28
 
29
29
  /**