add reset user pasword function to app service
This commit is contained in:
parent
d13bdb5dd1
commit
d0d1d6e396
|
@ -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 = {};
|
||||||
|
|
Loading…
Reference in New Issue