Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (29 sloc) 1016 Bytes
% layout 'starter';
% title 'Login';
%= form_for $self->url_for => (method => 'post') => begin
<table width='20%'><tr><td>Username:</td><td>
%= text_field 'userid'
</td></tr><tr><td>Password:</td><td>
%= password_field 'password'
</td></tr></table><br>
%= submit_button 'Login'
</td><td> </td></tr></table>
% end
% if (param('userid'))
% {
% if (exists $self->app->{config}->{users}->{ $self->param('userid') })
% {
% $self->session->{user}=
% $self->app->{config}->{users}->{ $self->param('userid') };
% push @{ $self->session->{notice_messages} },
% sprintf( 'Welcome %s %s.',
% $self->session->{user}->{first_name},
% $self->session->{user}->{last_name} );
% $self->redirect_to(
% $self->session->{user}->{username}
% . '/menu');
% }
% else {
% push @{ $self->session->{error_messages} }, 'Error messae';
% }
% }
Something went wrong with that request. Please try again.