diff options
Diffstat (limited to 'client/src/app/shared/users')
-rw-r--r-- | client/src/app/shared/users/user.service.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/shared/users/user.service.ts b/client/src/app/shared/users/user.service.ts index fad5b0980..bd5cd45d4 100644 --- a/client/src/app/shared/users/user.service.ts +++ b/client/src/app/shared/users/user.service.ts | |||
@@ -17,9 +17,10 @@ export class UserService { | |||
17 | ) { | 17 | ) { |
18 | } | 18 | } |
19 | 19 | ||
20 | changePassword (newPassword: string) { | 20 | changePassword (currentPassword: string, newPassword: string) { |
21 | const url = UserService.BASE_USERS_URL + 'me' | 21 | const url = UserService.BASE_USERS_URL + 'me' |
22 | const body: UserUpdateMe = { | 22 | const body: UserUpdateMe = { |
23 | currentPassword, | ||
23 | password: newPassword | 24 | password: newPassword |
24 | } | 25 | } |
25 | 26 | ||