Merge pull request #474 from liuchuangww/user

Fix reset email
Added user roles after assignment
Merge branch 'user' of https://github.com/pi-engine/pi into user
Added user roles after assignment
Fix user search