don't use auth.login in the api (bug 870368)
fixup! fixup! don't use auth.login in the api (bug 870368)