Added GUEST_PASSWORD to README (#80)
* Added GUEST_PASSWORD to README * comment out and reject default value --------- Co-authored-by: Wingy <git@wingysam.xyz>
This commit is contained in:
parent
22174ee93f
commit
8219b9a0f3
2 changed files with 8 additions and 1 deletions
|
@ -93,6 +93,9 @@ UPDATE_CHECK=true
|
||||||
PFP=true
|
PFP=true
|
||||||
# Language of the interface, options listed in `languages` directory
|
# Language of the interface, options listed in `languages` directory
|
||||||
LANGUAGE=en-US
|
LANGUAGE=en-US
|
||||||
|
# Password to enter guest mode,
|
||||||
|
# e.g. https://wishes.example.com?pw=ReplaceWithYourGuestPassword
|
||||||
|
# GUEST_PASSWORD=ReplaceWithYourGuestPassword
|
||||||
|
|
||||||
## Wishlist Settings
|
## Wishlist Settings
|
||||||
# Set to true to not allow users to have their own lists. You may want this for a birthday or wedding.
|
# Set to true to not allow users to have their own lists. You may want this for a birthday or wedding.
|
||||||
|
|
|
@ -25,3 +25,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (module.exports.guestPassword) module.exports.wishlist.public = false
|
if (module.exports.guestPassword) module.exports.wishlist.public = false
|
||||||
|
if (module.exports.guestPassword === 'ReplaceWithYourGuestPassword') {
|
||||||
|
console.error('Error: Guest password should be changed from default.')
|
||||||
|
process.exit(1)
|
||||||
|
}
|
Loading…
Reference in a new issue