|
@@ -68,7 +68,10 @@ class AdminUserController extends Controller
|
|
return back()->withErrors($validator)->withInput();
|
|
return back()->withErrors($validator)->withInput();
|
|
}
|
|
}
|
|
|
|
|
|
- $res = $this->model->create($request->input('data'));
|
|
|
|
|
|
+ $data = $request->input('data');
|
|
|
|
+ $data['password'] = bcrypt($data['password']);
|
|
|
|
+
|
|
|
|
+ $res = $this->model->create($data);
|
|
|
|
|
|
if(!$res) {
|
|
if(!$res) {
|
|
return $this->showWarning('数据库保存失败!');
|
|
return $this->showWarning('数据库保存失败!');
|