File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+ # [ 3.11.1] - 26-04-2021
6
+
7
+ ### Fixes
8
+
9
+ - Encode password and confirm password in setNewPassword method due to special characters problem
10
+
5
11
# [ 3.11.0] - 11-03-2021
6
12
7
13
### Added
Original file line number Diff line number Diff line change @@ -413,7 +413,9 @@ class Account extends BaseExtend {
413
413
async setNewPassword ( data : SetNewPasswordData , token = '' ) {
414
414
// TODO: check logic
415
415
// eslint-disable-next-line max-len
416
- const body = `password=${ data . password } &password_confirmation=${ data . passwordConfirmation } &branding_id=${ data . brandingId } ` ;
416
+ const password = encodeURIComponent ( data . password ) ;
417
+ const passwordConfirmation = encodeURIComponent ( data . passwordConfirmation ) ;
418
+ const body = `password=${ password } &password_confirmation=${ passwordConfirmation } &branding_id=${ data . brandingId } ` ;
417
419
418
420
return this . request . put ( API . setNewPassword ( token ) , body , {
419
421
headers : { 'Content-Type' : 'application/x-www-form-urlencoded' } ,
You can’t perform that action at this time.
0 commit comments