Skip to content

Commit

Permalink
fix: allow usernames with capital letters
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ribeiro committed Jul 29, 2024
1 parent f5be505 commit 713f09b
Show file tree
Hide file tree
Showing 2 changed files with 2 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
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 713f09b

Please sign in to comment.