Skip to content

Commit

Permalink
refactor: delete help.ejs page + help in router + link to /help
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccadumazert committed Oct 9, 2024
1 parent a520380 commit a987ddd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 183 deletions.
9 changes: 0 additions & 9 deletions src/routers/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { type Express, Router, urlencoded } from "express";
import nocache from "nocache";
import {
getConnectionAndAccountController,
getHelpController,
getHomeController,
getManageOrganizationsController,
getPersonalInformationsController,
Expand Down Expand Up @@ -144,14 +143,6 @@ export const mainRouter = (app: Express) => {
getHomeController,
);

mainRouter.get(
"/help",
urlencoded({ extended: false }),
ejsLayoutMiddlewareFactory(app, true),
csrfProtectionMiddleware,
getHelpController,
);

return mainRouter;
};

Expand Down
168 changes: 0 additions & 168 deletions src/views/help.ejs

This file was deleted.

7 changes: 1 addition & 6 deletions src/views/partials/password-input-messages.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,7 @@
<p class="fr-message" id="passphrase-input-message">
<span
>Alternativement, votre mot de passe peut être une
<i>phrase secrête</i> (<a
target="_blank"
rel="noopener noreferrer"
href="/help#choisir-mot-de-passe"
>en savoir plus</a
>) et doit contenir :</span
<i>phrase secrête</i> et doit contenir :</span
>
</p>
<p class="fr-message fr-message--info" id="passphrase-input-message-20char">
Expand Down

0 comments on commit a987ddd

Please sign in to comment.