Add password reset request endpoint to authentication routes; update OpenAPI spec and improve user email handling in users_o

This commit is contained in:
Jeppe Bundgaard
2026-01-19 11:17:35 +01:00
parent 09b5c618ed
commit da9ee98fb5
3 changed files with 88 additions and 0 deletions
+8
View File
@@ -157,6 +157,14 @@ class users_o extends db
$this->add($customer_number, '', 0);
// Nullify the password
$this->password->nullify();
// If the customer has an email address, save it
if (isset($customer_data->email)) {
$this->email->set($customer_data->email);
}
// If the customer has a name, save it as the display name
if (isset($customer_data->name)) {
$this->display_name->set($customer_data->name);
}
}
}
// Else return false