1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

code restore process finished

This commit is contained in:
Fedor Katurov 2019-11-25 17:05:42 +07:00
parent 078c531e93
commit e227c9660e
6 changed files with 61 additions and 18 deletions

View file

@ -78,3 +78,9 @@ export const apiCheckRestoreCode = ({ code }): Promise<IResultWithStatus<{}>> =>
.get(API.USER.REQUEST_CODE(code))
.then(resultMiddleware)
.catch(errorMiddleware);
export const apiRestoreCode = ({ code, password }): Promise<IResultWithStatus<{}>> =>
api
.post(API.USER.REQUEST_CODE(code), { password })
.then(resultMiddleware)
.catch(errorMiddleware);