Accept uppercase channel names in onboarding and company settings

This commit is contained in:
Thanakorn
2026-09-14 13:31:26 +07:00
parent 5ee0c8d41b
commit 5d021d7683
4 changed files with 8 additions and 6 deletions
@@ -99,7 +99,7 @@ class CompanyProfileManager
public function saveProfile(array $data, string $company_logo, string $company_seal): void
{
$channel = strtolower(preg_replace('/[^a-z0-9\-_]/', '', $data['channel_name'] ?? ''));
$channel = preg_replace('/[^a-z0-9\-_]/', '', strtolower(trim($data['channel_name'] ?? '')));
$sth = $this->pdo->prepare(
"UPDATE company_list SET