Skip to content

Commit 0fef993

Browse files
committed
fix user form validation
1 parent b565a95 commit 0fef993

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Models/Login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Login
1010

1111
public function isValide(): bool
1212
{
13-
if (empty($this->username) || empty($this->password)) {
13+
if (empty($this->Username) || empty($this->Password)) {
1414
return false;
1515
}
1616

Models/Registration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Registration
1010

1111
public function isValide(): bool
1212
{
13-
if (empty($this->name) || empty($this->Email) || empty($this->password)) {
13+
if (empty($this->Name) || empty($this->Email) || empty($this->Password)) {
1414
return false;
1515
}
1616

0 commit comments

Comments
 (0)