Skip to content

Commit

Permalink
remove redundant test authentication plugin; add new dummy username t…
Browse files Browse the repository at this point in the history
…o test plugin
  • Loading branch information
lstein committed May 24, 2011
1 parent 2d430c4 commit 2082448
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
8 changes: 6 additions & 2 deletions conf/plugins/TestAuthenticator.pm
Expand Up @@ -6,8 +6,12 @@ use base 'Bio::Graphics::Browser2::Plugin::AuthPlugin';
sub authenticate { sub authenticate {
my $self = shift; my $self = shift;
my ($name,$password) = $self->credentials; my ($name,$password) = $self->credentials;
return unless $name eq 'lincoln' && $password eq 'foobar'; if ($name eq 'lincoln' && $password eq 'foobar') {
return ($name,'Lincoln Stein'); # username, fullname return ($name,'Lincoln Stein'); # username, fullname
} elsif ($name eq 'jane' && $password eq 'foobar') {
return ($name,'Jane Doe');
}
return;
} }




Expand Down
17 changes: 0 additions & 17 deletions conf/plugins/TestAuthorizer.pm

This file was deleted.

0 comments on commit 2082448

Please sign in to comment.