Add changed roletask.py
1) add database transaction in roletask.py
2) refactor roletask.py

Add exception handler in usertask.py in case that password reset email fails to send.
In that case, password will be set to 123456 by default.