(error)
| 203 | }; |
| 204 | |
| 205 | const onError = function (error) { |
| 206 | const status = get(error, 'response.status'); |
| 207 | |
| 208 | const loginButton = getLoginButton(); |
| 209 | loginButton.removeAttribute('disabled'); |
| 210 | |
| 211 | if (contains([400, 401, 403, 500], status)) { |
| 212 | showError(error.response.data); |
| 213 | |
| 214 | } else { |
| 215 | showError('Unknown error occurred. Please contact the administrator'); |
| 216 | logError(error) |
| 217 | } |
| 218 | }; |
| 219 | |
| 220 | showInfo('Verifying credentials...'); |
| 221 |
no test coverage detected