diff --git a/src/controllers/AccountController.ts b/src/controllers/AccountController.ts index 7535e70..61f2c32 100644 --- a/src/controllers/AccountController.ts +++ b/src/controllers/AccountController.ts @@ -20,7 +20,8 @@ export class AccountController { * @param h Request handler */ public static async Create(h: RequestHandler) { - // TODO : add API limit + // Limit request + await limit_query(h, Action.CREATE_ACCOUNT, false); // Get & check email address const email = h.postEmail("emailAddress"); @@ -37,7 +38,8 @@ export class AccountController { // Try to create the account await AccountHelper.Create(newAccount); - // TODO : trigger the API limit + // Trigger the API limit + await limit_query(h, Action.CREATE_ACCOUNT, true); // Success h.success("The account has been created!");