Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/definitions/rest/v1/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ export type UsersEndpoints = {
'users.listTeams': {
GET: (params: { userId: IUser['_id'] }) => { teams: Array<ITeam> };
};
'users.forgotPassword': {
POST: (params: { email: string }) => {};
};
};
4 changes: 1 addition & 3 deletions app/lib/rocketchat/services/restApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ export const register = (credentials: { name: string; email: string; pass: strin
// RC 0.50.0
sdk.post('users.register', credentials);

export const forgotPassword = (email: string): any =>
export const forgotPassword = (email: string) =>
// RC 0.64.0
// TODO: missing definitions from server
// @ts-ignore
sdk.post('users.forgotPassword', { email });

export const sendConfirmationEmail = (email: string): Promise<{ message: string; success: boolean }> =>
Expand Down