I added the parse php sdk in my laravel 5.1 prject using HipsterJazzbo/LaraParse
provider , and I am trying to use the laravel Built-in auth system for parse user . I am following the docs of LaraParse by changing the driver
in config/auth.php
to parse
, the problem that the request is successful to parse _User
object but Auth::attempt()
method returns false
while the user is exists .
Here is my custom AuthController
:
namespace App\Http\Controllers;
use Auth;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class AuthController extends Controller
{
public function login(Request $request)
{
if (Auth::attempt(['email' => $request->input('email'), 'password' => $request->input('password')])) {
echo "hello";
}
else{
return "failed";
}
}
}
any help?!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire