equal
deleted
inserted
replaced
163 } |
163 } |
164 } |
164 } |
165 // Do we need to have the password validated? |
165 // Do we need to have the password validated? |
166 if ( $do_validate_pass ) |
166 if ( $do_validate_pass ) |
167 { |
167 { |
|
168 if ( empty($userdata['password']) ) |
|
169 { |
|
170 return array( |
|
171 'mode' => 'error', |
|
172 'error' => 'yubiauth_err_must_have_password' |
|
173 ); |
|
174 } |
168 // Yes; return and let the login API continue |
175 // Yes; return and let the login API continue |
169 return null; |
176 return null; |
170 } |
177 } |
171 else |
178 else |
172 { |
179 { |