propel_authentication 0.3.1.2 → 0.3.1.3
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bf6ef34d6126e6675e0a220a1286ab048e121edf4fafb0a21d290be571283f6
|
4
|
+
data.tar.gz: 0015c2c7cd35670f7af563a0d825431e471728c678df1a02aa0c88494af56f37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34b07c88d9f744a79d330c913b7edc63b4c53abda56255000fcc0dddf9ed874c2037eeb591cf29586ad0a17796ee501f4f7071cdb2326ebb30d8a2c005d38493
|
7
|
+
data.tar.gz: a1113ff975f7ef27076279f800e8b7f1fc9406ee896afcb2862709c8440fad7aee8e2db6701607d0c901157bcc25f7013da11b9ac8f017ba73781101d14b8c5b
|
data/CHANGELOG.md
CHANGED
@@ -13,6 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
- Session management and device tracking
|
14
14
|
- Advanced password policies
|
15
15
|
|
16
|
+
## [0.3.1.3] - 2025-09-11
|
17
|
+
|
18
|
+
### 🐛 Bug Fixes
|
19
|
+
- **HTTP Status Code Consistency**: Fixed tokens controller HTTP status codes for better standards compliance
|
20
|
+
- Changed parameter validation errors from `:unprocessable_content` (422) to `:bad_request` (400)
|
21
|
+
- More consistent error responses across authentication endpoints
|
22
|
+
- Better alignment with standard HTTP parameter validation practices
|
23
|
+
|
16
24
|
## [0.3.1.2] - 2025-09-11
|
17
25
|
|
18
26
|
### 🔧 Compatibility Updates
|
@@ -21,12 +29,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
21
29
|
- Better coordination with PropelApi's enhanced migration generation system
|
22
30
|
- Improved fixture generation for JSON fields with default values
|
23
31
|
|
24
|
-
### 🐛 Bug Fixes
|
25
|
-
- **HTTP Status Code Consistency**: Fixed tokens controller HTTP status codes for better standards compliance
|
26
|
-
- Changed parameter validation errors from `:unprocessable_content` (422) to `:bad_request` (400)
|
27
|
-
- More consistent error responses across authentication endpoints
|
28
|
-
- Better alignment with standard HTTP parameter validation practices
|
29
|
-
|
30
32
|
## [0.3.1.1] - 2025-09-11
|
31
33
|
|
32
34
|
### 🐛 Bug Fixes
|
@@ -66,7 +66,7 @@ class <%= auth_controller_class_name('tokens') %> < Api::BaseController
|
|
66
66
|
token = params[:token]
|
67
67
|
|
68
68
|
if token.blank?
|
69
|
-
render json: { error: 'Token is required' }, status: :
|
69
|
+
render json: { error: 'Token is required' }, status: :unprocessable_content
|
70
70
|
return
|
71
71
|
end
|
72
72
|
|
@@ -104,7 +104,7 @@ class <%= auth_controller_class_name('tokens') %> < Api::BaseController
|
|
104
104
|
|
105
105
|
def validate_login_parameters
|
106
106
|
unless params[:user].present? && params[:user][:email_address].present? && params[:user][:password].present?
|
107
|
-
render json: { error: 'Email address and password are required' }, status: :
|
107
|
+
render json: { error: 'Email address and password are required' }, status: :unprocessable_content
|
108
108
|
end
|
109
109
|
end
|
110
110
|
end
|