Add functionality to password module

Can you use jsdoc format to comment these methods?  

Please look at jsdoc site if you're not how to add jsdoc comment (http://usejsdoc.org/) or check out controller.js