Commit 4d22add
committed
fix(SalesforceSDKCore): gate host list back button on forced-advanced-auth flag
shouldShowBackButton returned YES for any host list VC whenever the
config's shouldDisplayBackButton was true, without checking
showsBackButtonAndLoginOptions. shouldDisplayBackButton is
!appConfig.shouldAuthenticate, which is YES in environments without a
bootconfig, so the back button leaked onto instances outside the
forced-advanced-auth path.
Add the showsBackButtonAndLoginOptions guard already used on the sole
production caller (line 159) and the login-options gear (line 275) so
the method is self-consistent. Fixes the failing unit test
test_givenUnlockedNoFlowNoAccount_whenShouldShowBackButton_thenNo.1 parent 0d464f7 commit 4d22add
1 file changed
Lines changed: 2 additions & 1 deletion
File tree
- libs/SalesforceSDKCore/SalesforceSDKCore/Classes/Login/LoginHost
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
| |||
0 commit comments