Skip to content

Instantly share code, notes, and snippets.

@nothingmuch
Created May 6, 2009 15:58
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 nothingmuch/107578 to your computer and use it in GitHub Desktop.
Save nothingmuch/107578 to your computer and use it in GitHub Desktop.
my $user = eval {
$c->authenticate({
id => $id,
password => $password,
});
};
if ( $user ) {
$c->response->body( "Hello " . $user->get_object->name )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment