Add NFC chore submission feature and enhance family settings
- Introduced NFC support for chore submissions, allowing specific person credit after Head of Household approval. - Updated family settings to include NFC base URL, scan cooldown, and confirmation page options. - Enhanced chore management with options for anyone to complete chores and NFC link generation. - Improved API endpoints for handling NFC tokens and chore submissions. - Updated readme to reflect new NFC features and settings.
This commit is contained in:
@@ -6,7 +6,7 @@ if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
|
||||
sendJson(['success' => false, 'error' => 'Method not allowed'], 405);
|
||||
}
|
||||
|
||||
$people = normalizePeopleList(readJsonFile('people.json'));
|
||||
$people = migrateAllPeople(normalizePeopleList(readJsonFile('people.json')));
|
||||
if (count($people) === 0) {
|
||||
sendJson(['success' => false, 'error' => 'Use first-time setup to create the initial Head of Household'], 400);
|
||||
}
|
||||
@@ -58,6 +58,8 @@ $newPerson = [
|
||||
'birthday' => $birthday,
|
||||
'favoriteColor' => $favoriteColor,
|
||||
'currency_balance' => 0,
|
||||
'nfc_submit_token_hash' => '',
|
||||
'nfc_submit_token_updated_at' => '',
|
||||
'created_at' => gmdate('c'),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user