Skip to content

Commit abb0141

Browse files
committed
PAUSE userid should be enough for the key_id passed to Auth::GoogleAuth
1 parent efdf931 commit abb0141

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/pause_2017/PAUSE/Web/Context.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ sub version {
4343

4444
sub authenticator_for {
4545
my ($self, $user) = @_;
46-
my $cpan_alias = lc($user->{userid}) . '@cpan.org';
47-
my $secret32 = $user->{mfa_secret32};
46+
my $userid = lc($user->{userid});
47+
my $secret32 = $user->{mfa_secret32};
4848
return Auth::GoogleAuth->new({
4949
secret32 => $secret32,
5050
issuer => $PAUSE::Config->{MFA_ISSUER} || 'PAUSE',
51-
key_id => $cpan_alias,
51+
key_id => $userid,
5252
});
5353
}
5454

0 commit comments

Comments
 (0)