Skip to content

Commit 079f8f9

Browse files
Merge pull request #219 from supertokens/dashboard-api-issue
fix: fixes newPassword validation
2 parents b0e71f1 + e3c83a7 commit 079f8f9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [unreleased]
9+
- Fixes `newPassword` validation in Dashboard API
910

1011
## [0.9.11]
1112
- Fixes panic issue with dashboard usersGet API

recipe/dashboard/api/userdetails/userPasswordPut.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func UserPasswordPut(apiInterface dashboardmodels.APIInterface, options dashboar
9191
}
9292
}
9393

94-
validationError := passwordField.Validate(readBody.NewPassword)
94+
validationError := passwordField.Validate(*readBody.NewPassword)
9595

9696
if validationError != nil {
9797
return userPasswordPutResponse{
@@ -134,7 +134,7 @@ func UserPasswordPut(apiInterface dashboardmodels.APIInterface, options dashboar
134134
}
135135
}
136136

137-
validationError := passwordField.Validate(readBody.NewPassword)
137+
validationError := passwordField.Validate(*readBody.NewPassword)
138138

139139
if validationError != nil {
140140
return userPasswordPutResponse{

0 commit comments

Comments
 (0)