Skip to content

Commit

Permalink
beautiful 改密码搞定。。
Browse files Browse the repository at this point in the history
  • Loading branch information
xsir317 committed Nov 26, 2014
1 parent 9d790df commit b1a9cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publisher/app/controllers/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function changepwd()
{
$error = '信息填写不完整';
}
else if(Hash::make($oldpwd) != Auth::user()->password)
else if(!Auth::validate(array('username' => Auth::user()->username,'password'=> $oldpwd)))
{
$error = '旧密码不正确';
}
Expand Down

0 comments on commit b1a9cb4

Please sign in to comment.