fix LoginResource.js with temp password bug