Remove redundant call to doLoing().

Setting data-ng-submit="doLogin()" for the form and data-ng-click="doLogin()"
for the enclosed submit button is redundant. Only setting
data-ng-submit="doLogin()" is enough.
Use web worker to calculate the auth token.