Skip to content

Instantly share code, notes, and snippets.

@degt
Created November 3, 2014 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save degt/9082263101636a3c3f06 to your computer and use it in GitHub Desktop.
Save degt/9082263101636a3c3f06 to your computer and use it in GitHub Desktop.
<?php
try
{
$user = Sentry::authenticate($credentials, false);
if ($user)
{
return Redirect::route('admin.pages.index');
}
}
catch (\Exception $e)
{
$errorHandler = new SentryExceptionHandler( $e );
$message = $errorHandler->getMessage();
}
return Redirect::route('admin.login')->withErrors(array('login' => $message));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment