Repository navigation
Conversation
|
|
||
| return [accountService createOrUpdateAccountWithUsername:username authToken:authToken]; | ||
| WPAccount *account = [accountService createOrUpdateAccountWithUsername:username authToken:authToken]; | ||
| if (![accountService.defaultWordPressComAccount.uuid isEqualToString:account.uuid]) { |
There was a problem hiding this comment.
We shouldn't add business logic to facades. The work being done probably has a better home in AccountService createOrUpdateAccountWithUsername:authToken:
|
Hiya @kurzee |
|
Since the mention of not having logic in the facade, I got to thinking... The I'm going to close this PR and instead work on a slight refactor of Thanks for the review anyways @aerych! |
Fixes #5042
This expands an older fix (#3401) in which the current default account was removed when the user was re-authing and happened to change accounts. Now, we'll always remove the current default account if it is different than the newly authenticated account, on login.
Dropping this one for
developrather thanrelease/6.1as the fixes are a bit different and not necessarily a hot-fix.To test:
Needs review: @aerych at your convenience please señor. (We can hold off on this for now if your magic links change this)