Skip to content

Instantly share code, notes, and snippets.

@jaspertandy
Created September 30, 2013 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaspertandy/fa5db054a32bf9e843da to your computer and use it in GitHub Desktop.
Save jaspertandy/fa5db054a32bf9e843da to your computer and use it in GitHub Desktop.
try {
$user->login();
$wf->result(
mt_rand(),
'Success',
'You are now logged in',
'',
'icon.png'
);
} catch ( Exception $e ) {
$wf->result(
mt_rand(),
$e->getMessage(),
$e->getMessage(),
'Login failed. Please try again.',
'icon.png'
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment