[WEB-3673] fix: password change form (#6839)
* fix: change password * fix: added store action for change password * fix: type * fix: store refactor
This commit is contained in:
parent
99dba80d19
commit
e8779511ad
20 changed files with 101 additions and 41 deletions
|
|
@ -145,7 +145,7 @@ export class UserService extends APIService {
|
|||
});
|
||||
}
|
||||
|
||||
async changePassword(token: string, data: { old_password: string; new_password: string }): Promise<any> {
|
||||
async changePassword(token: string, data: { old_password?: string; new_password: string }): Promise<any> {
|
||||
return this.post(`/auth/change-password/`, data, {
|
||||
headers: {
|
||||
"X-CSRFTOKEN": token,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue