summaryrefslogtreecommitdiffstats
path: root/application/controllers/user.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-17 13:21:29 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-18 13:50:33 +0200
commit39d973c2988174e0c895d203b5dd7a7d3de8f1f9 (patch)
tree629c7bf06284f33f254bfee1a2dd9f31324e46ab /application/controllers/user.php
parent5e67488012527cc31777ce5d8835fdfd9547ba13 (diff)
Use === for some equality checks
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/user.php')
-rw-r--r--application/controllers/user.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/application/controllers/user.php b/application/controllers/user.php
index 71f83b527..d87b544c7 100644
--- a/application/controllers/user.php
+++ b/application/controllers/user.php
@@ -206,7 +206,7 @@ class User extends MY_Controller {
$error[]= "Invalid email.";
}
- if (!$password || $password != $password_confirm) {
+ if (!$password || $password !== $password_confirm) {
$error[]= "No password or passwords don't match.";
}
@@ -385,7 +385,7 @@ class User extends MY_Controller {
$password = $this->input->post("password");
$password_confirm = $this->input->post("password_confirm");
- if (!$password || $password != $password_confirm) {
+ if (!$password || $password !== $password_confirm) {
$error[]= "No password or passwords don't match.";
}
@@ -620,7 +620,7 @@ class User extends MY_Controller {
$this->data["password"] = $password;
if ($process !== false) {
- if (!$password || $password != $password_confirm) {
+ if (!$password || $password !== $password_confirm) {
$error[]= "No password or passwords don't match.";
} else {
$this->data["hash"] = $this->muser->hash_password($password);