修改authenticate函数
Merge pull request #99 from maoyu/master

修改authenticate函数