Commit a2dcab8
committed
fix(login): unconditionally proceed with login after account verification
proceedWithLogin() skipped setting the account active and navigating
onward whenever the newly stored account already looked like the
active user in the DB. Since storeProfile() always inserts new
accounts with current=true and the current-user query picks the row
with the highest id, this was true for any 2nd+ account added,
leaving the verification screen stuck forever.
Signed-off-by: Marcel Hibbe <marcel.hibbe@nextcloud.com>1 parent a124bf7 commit a2dcab8
1 file changed
Lines changed: 11 additions & 22 deletions
Lines changed: 11 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
| 522 | + | |
| 523 | + | |
527 | 524 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
541 | 530 | | |
542 | | - | |
543 | | - | |
544 | | - | |
| 531 | + | |
| 532 | + | |
545 | 533 | | |
546 | 534 | | |
547 | | - | |
| 535 | + | |
| 536 | + | |
548 | 537 | | |
549 | 538 | | |
550 | 539 | | |
| |||
0 commit comments