[#122] Email verifikációhttps://project.mdnd-it.cc/work_packages/122
This commit is contained in:
@@ -45,3 +45,16 @@ export const getUserStats = async () => {
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Email verification - POST
|
||||
export const verifyEmail = async (token) => {
|
||||
try {
|
||||
const response = await apiClient.post(`/users/verify-email/${token}`);
|
||||
return response;
|
||||
} catch (error) {
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user