Skip to content

Commit

Permalink
Minor: Add doc on legal_accept extra field format
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Jan 20, 2025
1 parent 68c26ef commit 475c563
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/main/auth/inscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@
$cond_array = explode(':', $values['legal_accept_type']);
if (!empty($cond_array[0]) && !empty($cond_array[1])) {
$time = time();
// legal_accept is stored as version_id:language_id:timestamp
$conditionToSave = (int) $cond_array[0].':'.(int) $cond_array[1].':'.$time;
UserManager::update_extra_field_value(
$userId,
Expand Down

0 comments on commit 475c563

Please sign in to comment.