Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.
fix: allow usernames with capital letters
Miguel Ribeirof241ba23018e
diff --git a/endpoints/admin/adduser.php b/endpoints/admin/adduser.phpindex c17ea8e..44bf243 100644--- a/endpoints/admin/adduser.php+++ b/endpoints/admin/adduser.php@@ -122,7 +122,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {$loggedInUserId = $userId;$email = validate($data['email']);- $username = validate(strtolower($data['username']));+ $username = validate($data['username']);$password = $data['password'];if (empty($username) || empty($password) || empty($email)) {diff --git a/endpoints/subscription/exportcalendar.php b/endpoints/subscription/exportcalendar.phpindex be16b91..6a8fe29 100644--- a/endpoints/subscription/exportcalendar.php+++ b/endpoints/subscription/exportcalendar.php@@ -35,6 +35,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {$subscription['payment_method'] = $payment_methods[$subscription['payment_method_id']]['name'];$subscription['currency'] = $currencies[$subscription['currency_id']]['symbol'];$subscription['trigger'] = $subscription['notify_days_before'] ? $subscription['notify_days_before'] : 1;+ $subscription['price'] = number_format($subscription['price'], 2);// Create ICS from subscription information$uid = uniqid();diff --git a/endpoints/subscription/getcalendar.php b/endpoints/subscription/getcalendar.phpindex 298be0a..17e18ac 100644--- a/endpoints/subscription/getcalendar.php+++ b/endpoints/subscription/getcalendar.php@@ -35,6 +35,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {$subscription['category'] = $categories[$subscription['category_id']]['name'];$subscription['payment_method'] = $payment_methods[$subscription['payment_method_id']]['name'];$subscription['currency'] = $currencies[$subscription['currency_id']]['symbol'];+ $subscription['price'] = number_format($subscription['price'], 2);echo json_encode(['success' => true,diff --git a/includes/version.php b/includes/version.phpindex 63787b5..d7baef1 100644--- a/includes/version.php+++ b/includes/version.php@@ -1,3 +1,3 @@<?php-$version = "v2.20.0";+$version = "v2.20.1";?>\ No newline at end of file