Commit 86be7e5
committed
fix(eu-data-act): actionable login error messages + don't restart-loop on bad creds
The login flow used to throw a single generic 'Login failed - check email
and password' for every IdP refusal. The Identity Portal actually exposes
a specific error code in the landing-URL query string (?error=...) and
the templateModel.error in the body — we now parse both and map known
codes to user-actionable messages:
password_invalid -> 'password incorrect'
email_invalid -> 'email not recognised'
throttled -> 'too many failed attempts, wait ~30 min'
account_disabled -> 'account locked, reset password'
tenants.notAuthorized -> 'not entitled to EU Data Act portal,
complete browser-side first-time setup'
Plus, the runEuDataAct catch in main.js no longer schedules a 30-min
restart loop for credential failures (pointless — won't self-heal). It
logs once, marks info.connection=false, and stays put until the user
fixes the config and restarts manually. Network/transient failures still
get the 30-min retry as before.
Verified live: wrong password now reports
'Login failed: password incorrect (login.errors.password_invalid).'1 parent 65623f5 commit 86be7e5
2 files changed
Lines changed: 67 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
143 | 196 | | |
144 | 197 | | |
145 | 198 | | |
| |||
450 | 503 | | |
451 | 504 | | |
452 | 505 | | |
453 | | - | |
| 506 | + | |
454 | 507 | | |
455 | 508 | | |
456 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
316 | 328 | | |
317 | 329 | | |
318 | 330 | | |
| |||
0 commit comments