Skip to content

Commit

Permalink
generate dbAuth: one more thing formatting (#9247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored and jtoar committed Oct 5, 2023
1 parent 2ec4596 commit 3566a7e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/cli/src/commands/generate/dbAuth/dbAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const ROUTES = [
]

const POST_INSTALL =
`One more thing...\n\n` +
` ${c.warning("Pages created! But you're not done yet:")}\n\n` +
` You'll need to tell your pages where to redirect after a user has logged in,\n` +
` signed up, or reset their password. Look in LoginPage, SignupPage,\n` +
Expand All @@ -48,7 +47,6 @@ const POST_INSTALL =
` Happy authenticating!\n`

const WEBAUTHN_POST_INSTALL =
`One more thing...\n\n` +
` ${c.warning("Pages created! But you're not done yet:")}\n\n` +
" You'll need to tell your pages where to redirect after a user has logged in,\n" +
' signed up, or reset their password. In LoginPage, look for the `REDIRECT`\n' +
Expand Down Expand Up @@ -359,8 +357,10 @@ const tasks = ({
},
{
title: 'One more thing...',
task: (ctx, task) => {
task.title = webauthn ? WEBAUTHN_POST_INSTALL : POST_INSTALL
task: () => {
// This doesn't preserve formatting, so it's been moved to regular
// console.log()s after the tasks have all finished running
// task.title = webauthn ? WEBAUTHN_POST_INSTALL : POST_INSTALL
},
},
],
Expand Down Expand Up @@ -391,6 +391,8 @@ export const handler = async (yargs) => {
prepareForRollback(t)
}
await t.run()
console.log('')
console.log(yargs.webauthn ? WEBAUTHN_POST_INSTALL : POST_INSTALL)
} catch (e) {
console.log(c.error(e.message))
}
Expand Down

0 comments on commit 3566a7e

Please sign in to comment.