[password hash] reuse function in functions.php

- controllers/admin/user.php
- controllers/user.php
- add function bcrypthash($password)