Skip to content

Commit

Permalink
feat: add switch for fast onboarding feature
Browse files Browse the repository at this point in the history
  • Loading branch information
tensor5 committed Oct 10, 2024
1 parent 369e352 commit 4a22954
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ module.exports = {
},
pasetoApiToken: process.env.ONBOARDING_PASETO_KEY,
apiURL: process.env.DEVELOPERS_ITALIA_API_URL || 'https://api.developers.italia.it/v1',
fastOnboarding: process.env.FAST_ONBOARDING || false
};
1 change: 1 addition & 0 deletions src/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = function (request, h) {
return h.view(
'main-content', {
appVersion,
fastOnboarding: config.fastOnboarding,
pa: {
esUrl: config.esUrl,
ipa: '',
Expand Down
2 changes: 1 addition & 1 deletion src/tpl/main-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="container">
<div class="row d-flex align-items-center justify-content-center main-content">
<div class="my-5 col-md-9">
<form id="pa-form" action="fast-onboarding" method="POST">
<form id="pa-form" action="{{#fastOnboarding }}fast-onboarding{{/fastOnboarding}}{{^fastOnboarding }}email-sent{{/fastOnboarding}}" method="POST">
<h1>Registrazione repository per software pubblico</h1>
<br />
<p class="lead">
Expand Down

0 comments on commit 4a22954

Please sign in to comment.