Add subcription feature 5
This commit is contained in:
@@ -93,8 +93,15 @@ export class AuthService {
|
||||
return apiClient.post<{ message: string }>(`${this.baseUrl}/change-password`, passwordData);
|
||||
}
|
||||
|
||||
async resetPassword(resetData: PasswordReset): Promise<{ message: string }> {
|
||||
return apiClient.post<{ message: string }>(`${this.baseUrl}/reset-password`, resetData);
|
||||
async requestPasswordReset(email: string): Promise<{ message: string }> {
|
||||
return apiClient.post<{ message: string }>(`${this.baseUrl}/password/reset-request`, { email });
|
||||
}
|
||||
|
||||
async resetPasswordWithToken(token: string, newPassword: string): Promise<{ message: string }> {
|
||||
return apiClient.post<{ message: string }>(`${this.baseUrl}/password/reset`, {
|
||||
token,
|
||||
new_password: newPassword
|
||||
});
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
Reference in New Issue
Block a user