summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xauth.class.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/auth.class.php b/auth.class.php
index 1a474df..b680604 100755
--- a/auth.class.php
+++ b/auth.class.php
@@ -124,16 +124,16 @@ class Auth
$validateEmail = $this->validateEmail($email);
$validatePassword = $this->validatePassword($password);
-
- if ($validateEmail['error'] == 1) {
+
+ if ($password != $repeatpassword) {
+ return['message'] = $this->lang["password_nomatch"];
+ return $return;
+ } elseif ($validateEmail['error'] == 1) {
$return['message'] = $validateEmail['message'];
return $return;
} elseif ($validatePassword['error'] == 1) {
$return['message'] = $validatePassword['message'];
return $return;
- } elseif($password !== $repeatpassword) {
- $return['message'] = $this->lang["password_nomatch"];
- return $return;
}
if ($this->isEmailTaken($email)) {