So the posted answer wasn't necessary/correct? Which part of the answer was incorrect/unneeded?
I wish this OP comment included the full version of code that worked.
I don't understand this OP comment. Wasn't OP already returning loginDaoCall? So maybe the only thing they could mean is that they just needed to change it to return loginDaoCall.then(...) instead...
That would be consistent with what the answer said:
the promise returned by the further .then() does also get rejected and was not handled.
So I guess the unnecessary part of the answer was adding the return true/false...