[sty] api:member_password_change_initialize
This commit is contained in:
parent
7c9f856aa1
commit
8d803cbec1
|
|
@ -62,15 +62,22 @@ namespace _espe.api
|
|||
}),
|
||||
"restriction": () => restriction_none,
|
||||
"execution": () => async ({"input": input}) => {
|
||||
if (input === null) {
|
||||
if (input === null)
|
||||
{
|
||||
return Promise.reject(new Error("impossible"));
|
||||
}
|
||||
else {
|
||||
await _espe.service.member.password_change_initialize(input.identifier, input.url_template);
|
||||
return Promise.resolve({
|
||||
else
|
||||
{
|
||||
await _espe.service.member.password_change_initialize(
|
||||
input.identifier,
|
||||
input.url_template
|
||||
);
|
||||
return Promise.resolve(
|
||||
{
|
||||
"status_code": 200,
|
||||
"data": null
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue