Commit f4872309 authored by 冯超鹏's avatar 冯超鹏

密码提交

parent dc877b4f
Pipeline #146 failed with stages
...@@ -123,7 +123,7 @@ class UinappHomeController extends Controller ...@@ -123,7 +123,7 @@ class UinappHomeController extends Controller
public function ispassword(Request $request){ public function ispassword(Request $request){
$password = $request->input('password'); $password = $request->input('password');
$isemail = $request->input('email'); $isemail = $request->input('email');
$data = DB::table('users')->where('email','=',$isemail)->update(['password'=>sha1($password)]); $data = DB::table('users')->where('email','=',$isemail)->update(['password'=>Hash::make($password)]);
if($data !== false){ if($data !== false){
return $this->jsonSuccessData(1); return $this->jsonSuccessData(1);
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment