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

passwar

parent d01a7606
Pipeline #145 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'=>$password]); $data = DB::table('users')->where('email','=',$isemail)->update(['password'=>sha1($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