Skip to content

Instantly share code, notes, and snippets.

@jaspertandy
Created Sep 30, 2013
Embed
What would you like to do?
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