Skip to content

Commit

Permalink
fix: allow usernames with capital letters
Browse files Browse the repository at this point in the history
fix: use 2 decimal places for price on the calendar
fix: use 2 decimal places for price when exporting ical in the calendar
  • Loading branch information
ellite authored Jul 29, 2024
1 parent f5be505 commit f241ba2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion endpoints/admin/adduser.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function validate($value)
$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)) {
Expand Down
1 change: 1 addition & 0 deletions endpoints/subscription/exportcalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
$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();
Expand Down
1 change: 1 addition & 0 deletions endpoints/subscription/getcalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
$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,
Expand Down
2 changes: 1 addition & 1 deletion includes/version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
$version = "v2.20.0";
$version = "v2.20.1";
?>

0 comments on commit f241ba2

Please sign in to comment.