Commit a34eec7
o
fix selection of mode on login
When the User selects a mode on the login form (ie. setting horde_select_view),
it gets always overwritten by 'auto'. The reason is that during login there is
a cycle that leads to authentication being triggered twice.
The culprit is the call to setAuth at
https://github.com/horde/Core/blob/master/lib/Horde/Core/Auth/Application.php#L669
which ends up triggering a second authentication through
$this->loadPrefs($this->getApp());
which in turn does not have access to the original $credentials array and then
sets the view to the default value.
This patch breaks the cycle, by preventing the second auth when the first one
did not finish.1 parent a1cb695 commit a34eec7
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2610 | 2610 | | |
2611 | 2611 | | |
2612 | 2612 | | |
2613 | | - | |
2614 | | - | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
2615 | 2617 | | |
2616 | 2618 | | |
2617 | 2619 | | |
| |||
0 commit comments