代码提交
This commit is contained in:
@@ -49,7 +49,7 @@ class AuthService
|
||||
throw new \Exception('用户不存在或已禁用', 403);
|
||||
}
|
||||
|
||||
if ($user->passwordMd5 !== $password) {
|
||||
if ($user->passwordMd5 !== md5($password)) {
|
||||
throw new \Exception('账号或密码错误', 403);
|
||||
}
|
||||
|
||||
|
||||
@@ -102,6 +102,7 @@ Route::group('v1/', function () {
|
||||
});
|
||||
|
||||
|
||||
//数据统计相关
|
||||
Route::group('dashboard',function (){
|
||||
Route::get('', 'app\cunkebao\controller\StatsController@baseInfoStats');
|
||||
Route::get('plan-stats', 'app\cunkebao\controller\StatsController@planStats');
|
||||
|
||||
Reference in New Issue
Block a user