(text)
| 228 | } |
| 229 | |
| 230 | function showError(text) { |
| 231 | const label = document.getElementsByClassName('login-info-label')[0]; |
| 232 | label.innerText = text; |
| 233 | |
| 234 | if (text) { |
| 235 | addClass(label, 'error'); |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | function hideError() { |
| 240 | showError(''); |