-
-
Save jaspertandy/fa5db054a32bf9e843da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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