You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CodeIgniter/Framework/libraries/Form_validation.php
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2123,49 +2123,49 @@ public function valid_password($password = '')
2123
2123
2124
2124
if (empty($password)) {
2125
2125
2126
-
$this->form_validation->set_message('valid_password', 'The {field} field is required.');
2126
+
$this->set_message('valid_password', 'The {field} field is required.');
2127
2127
2128
2128
returnfalse;
2129
2129
}
2130
2130
2131
2131
if (preg_match_all($regex_lowercase, $password) < 1) {
2132
2132
2133
-
$this->form_validation->set_message('valid_password', 'The {field} field must be at least one lowercase letter.');
2133
+
$this->set_message('valid_password', 'The {field} field must be at least one lowercase letter.');
2134
2134
2135
2135
returnfalse;
2136
2136
}
2137
2137
2138
2138
if (preg_match_all($regex_uppercase, $password) < 1) {
2139
2139
2140
-
$this->form_validation->set_message('valid_password', 'The {field} field must be at least one uppercase letter.');
2140
+
$this->set_message('valid_password', 'The {field} field must be at least one uppercase letter.');
2141
2141
2142
2142
returnfalse;
2143
2143
}
2144
2144
2145
2145
if (preg_match_all($regex_number, $password) < 1) {
2146
2146
2147
-
$this->form_validation->set_message('valid_password', 'The {field} field must have at least one number.');
2147
+
$this->set_message('valid_password', 'The {field} field must have at least one number.');
2148
2148
2149
2149
returnfalse;
2150
2150
}
2151
2151
2152
2152
if (preg_match_all($regex_special, $password) < 1) {
2153
2153
2154
-
$this->form_validation->set_message('valid_password', 'The {field} field must have at least one special character.' . '' . htmlentities('!@#$%^&*()\-_=+{};:,<.>§~'));
2154
+
$this->set_message('valid_password', 'The {field} field must have at least one special character.' . '' . htmlentities('!@#$%^&*()\-_=+{};:,<.>§~'));
2155
2155
2156
2156
returnfalse;
2157
2157
}
2158
2158
2159
2159
if (strlen($password) < 5) {
2160
2160
2161
-
$this->form_validation->set_message('valid_password', 'The {field} field must be at least 5 characters in length.');
2161
+
$this->set_message('valid_password', 'The {field} field must be at least 5 characters in length.');
2162
2162
2163
2163
returnfalse;
2164
2164
}
2165
2165
2166
2166
if (strlen($password) > 32) {
2167
2167
2168
-
$this->form_validation->set_message('valid_password', 'The {field} field cannot exceed 32 characters in length.');
2168
+
$this->set_message('valid_password', 'The {field} field cannot exceed 32 characters in length.');
0 commit comments