Browse files

Added logout message

  • Loading branch information...
1 parent 9e54acc commit 25624e5b4d72a1baf9baa6402778f66641e4c186 @jberger committed Feb 16, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Galileo/User.pm
View
5 lib/Galileo/User.pm
@@ -11,18 +11,19 @@ sub login {
my $user = $schema->resultset('User')->single({name => $name});
if ($user and $user->check_password($pass)) {
- $self->humane_flash( "Welcome Back!" );
+ $self->humane_flash( 'Welcome Back!' );
$self->session->{id} = $user->user_id;
$self->session->{username} = $name;
} else {
- $self->humane_flash( "Sorry try again" );
+ $self->humane_flash( 'Sorry try again' );
}
$self->redirect_to( $from );
}
sub logout {
my $self = shift;
$self->session( expires => 1 );
+ $self->humane_flash( 'Goodbye' );
$self->redirect_to( $self->home_page );
}

0 comments on commit 25624e5

Please sign in to comment.