add reset user pasword function to app service

This commit is contained in:
Eduardo Quiros 2022-08-23 21:50:12 -06:00
parent d13bdb5dd1
commit d0d1d6e396
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 16 additions and 0 deletions

View File

@ -225,6 +225,22 @@ export class AppService {
.pipe(map((message: string) => ({ message }))); .pipe(map((message: string) => ({ message })));
} }
resetUserPassword(id: string, dni: string, name: string, last_name: string, email: string, phone: number
, user_type: string, status: string, date_entry: Date, community_id: string) {
const pattern = { cmd: 'resetUserPassword' };
const payload = {
id: id, dni: dni, name: name, last_name: last_name, email: email, phone: phone,
password: this.generatePassword(), user_type: user_type, status: status, date_entry: date_entry, community_id
};
return this.clientUserApp
.send<string>(pattern, payload)
.pipe(
map((message: string) => ({ message })),
);
}
allUsersAdminSistema() { allUsersAdminSistema() {
const pattern = { cmd: 'findAdminSistema' }; const pattern = { cmd: 'findAdminSistema' };
const payload = {}; const payload = {};