Skip to content

Improve example in README.md#206

Merged
hueniverse merged 1 commit intohapijs:masterfrom
nanodracula:patch-2
Mar 15, 2019
Merged

Improve example in README.md#206
hueniverse merged 1 commit intohapijs:masterfrom
nanodracula:patch-2

Conversation

@nanodracula
Copy link
Copy Markdown
Contributor

Hi everyone!

This PR aim to improve example code in readme, so that newcomers can more easily understand how to use this module.

I tried to:

  • Simplify conditional logic
  • Break apart login POST and GET handlers
  • Remove Hapi cache as session storage because you don’t have to know about the cache in order to use this module. Also using this in memory sessions will log out you after server restart, which may confuse people (as example: sessions don't survive server restart #200)
  • Move html templates from handlers

Hi everyone!

This PR aim to improve example code in readme, so that newcomers can more easily understand how to use this module.

**I tried to:**
- Simplify conditional logic
- Break apart login POST and GET handlers
- Remove Hapi cache as session storage because you don’t have to know about the cache in order to use this module. Also using this in memory sessions will log out you after server restart, which may confuse people (as example: #200)
- Move html templates from handlers
@hueniverse hueniverse self-assigned this Mar 15, 2019
@hueniverse hueniverse added the documentation Non-code related changes label Mar 15, 2019
@hueniverse hueniverse merged commit 6bcfce7 into hapijs:master Mar 15, 2019
@nanodracula nanodracula deleted the patch-2 branch March 15, 2019 16:24
hueniverse added a commit that referenced this pull request Mar 15, 2019
@lock
Copy link
Copy Markdown

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Non-code related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants