Skip to content

Commit

Permalink
readme 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cindyita committed Apr 5, 2024
1 parent 26b688a commit ef51264
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified README.md
Binary file not shown.
4 changes: 2 additions & 2 deletions assets/js/pages/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,6 @@ function checkCPass() {
}

function checkPattern(str) {
var re = /^(?=.*[a-z])(?=.*[A-Z]).{8,}$/;
return re.test(str);
var reg = /^(?=.*[a-z])(?=.*[A-Z]).{8,}$/;
return reg.test(str);
}
2 changes: 1 addition & 1 deletion src/controllers/pages/homeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
function getHome() {
$data = getPostData();
$db = new QueryModel();
if (!empty($data) && count($data)>0 && !empty($data['id'])) {
if (!empty($data['id'] ?? null)) {
$row = $db->query("SELECT * FROM users WHERE id=:id",[":id"=>$data['id']]);
$response = json_encode($row);
} else {
Expand Down

0 comments on commit ef51264

Please sign in to comment.