feat: add password preferences component

Fixes: #510
This commit is contained in:
punwai
2019-12-29 16:34:49 +05:30
committed by Jivjyot Singh
parent dc61cba5d6
commit 2ce737e53d
9 changed files with 194 additions and 3 deletions
@@ -82,4 +82,19 @@ export class OrganizationService {
return this.http.delete(`/paymenttypes/${paymentTypeId}`);
}
/**
* @returns {Observable<any>} Password Preferences Template data
*/
getPasswordPreferencesTemplate(): Observable<any> {
return this.http.get('/passwordpreferences/template');
}
/**
* @param {any} passwordPreferences Password Preferences data.
* @returns {Observable<any>}
*/
updatePasswordPreferences(passwordPreferences: any): Observable<any> {
return this.http.put('/passwordpreferences', passwordPreferences);
}
}