1
0

Initial application generated by JHipster-5.8.2

This commit is contained in:
Michael Hoennig
2019-04-01 13:14:56 +02:00
commit e0b3d2a36d
404 changed files with 49698 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { SERVER_API_URL } from 'app/app.constants';
@Injectable({ providedIn: 'root' })
export class PasswordService {
constructor(private http: HttpClient) {}
save(newPassword: string, currentPassword: string): Observable<any> {
return this.http.post(SERVER_API_URL + 'api/account/change-password', { currentPassword, newPassword });
}
}