Hi can can anyone help me please.
http://motionadvt.com/barakat-november-2014/admin/signin
the link above always redirect to the same page to this link " http://motionadvt.com/barakat-november-2014/admin/signin"
this is the posting code after you click the submit button
/***************/
public function postSignIn() {
// Check if the Throttling feature is enabled or disabled
try
{
$email = Input::get('inputEmail'); $password = Input::get('inputPassword');
$throttle =Sentry::findThrottlerByUserLogin($email);
if($suspended = $throttle->isSuspended())
{
return Redirect::route('admin-sign-in-post')->with('global','Your account is suspended. Your can try to login after 15 minutes.');
}
$credentials = array( 'email' => $email, 'password' => $password, );
$remember=(Input::has('rememberme'))? true : false;
// Try to authenticate the user
$user = Sentry::authenticate($credentials, $remember);
//$user = Sentry::authenticateAndRemember($credentials);
return Redirect::intended('admin')->with(array('global'=>'You are now Logged In!','success'=>true));
}
catch (Cartalyst\Sentry\Users\LoginRequiredException $e)
{
return Redirect::route('admin-sign-in-post')->with('global','Login details required.')->withInput();
}
catch (Cartalyst\Sentry\Users\PasswordRequiredException $e)
{
// return Redirect::route('admin-sign-in-post')->with('global','Password field is required.')->withInput();
}
catch (Cartalyst\Sentry\Users\WrongPasswordException $e)
{
// return Redirect::route('admin-sign-in-post')->with('global','Your password is wrong')->withInput();
}
catch (Cartalyst\Sentry\Users\UserNotFoundException $e)
{
return Redirect::route('admin-sign-in-post')->with('global','It looks like the email you entered is not registered on our system.')->withInput();
}
catch (Cartalyst\Sentry\Users\UserNotActivatedException $e)
{
return Redirect::route('admin-sign-in-post')->with('global','Admin is not activated.')->withInput();
}
}
/*************/
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community