Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php namespace App\Http\Controllers;
- use App\Helpers\Logging;
- use App\Models\AddressProvinces;
- use App\Repository\AgencyRepository;
- use App\Services\GatewayService;
- use Cartalyst\Sentinel\Checkpoints\NotActivatedException;
- use Cartalyst\Sentinel\Checkpoints\ThrottlingException;
- use Illuminate\Http\Request;
- use Lang;
- use Mail;
- use Redirect;
- use Reminder;
- use Sentinel;
- use URL;
- use Validator;
- use View;
- use Illuminate\Support\Facades\Input;
- class AuthController extends JoshController
- {
- public function postSignin(Request $request)
- {
- $data = [
- "username" => $request->input('email'),
- "password" => $request->input('password')
- ];
- $respon=GatewayService::login($data);
- if ($respon->status == true)
- {
- return redirect('/');
- }
- else
- {
- return redirect()->back()->with('error', $respon->message);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement