View | Details | Raw Unified | Return to bug 33904
Collapse All | Expand All

(-)a/Koha/Auth/TwoFactorAuth.pm (-1 / +1 lines)
Lines 75-81 sub new { Link Here
75
        Koha::Exceptions::MissingParameter->throw("No secret passed or patron has no secret");
75
        Koha::Exceptions::MissingParameter->throw("No secret passed or patron has no secret");
76
    }
76
    }
77
77
78
    my $issuer = $patron->library->branchname;
78
    my $issuer = Encode::encode_utf8($patron->library->branchname);
79
    my $key_id = sprintf "%s_%s",
79
    my $key_id = sprintf "%s_%s",
80
      $issuer, ( $patron->email || $patron->userid );
80
      $issuer, ( $patron->email || $patron->userid );
81
81
(-)a/Koha/REST/V1/TwoFactorAuth.pm (-3 / +2 lines)
Lines 98-105 sub registration { Link Here
98
            { patron => $patron, secret => $secret } );
98
            { patron => $patron, secret => $secret } );
99
99
100
        my $response = {
100
        my $response = {
101
            issuer   => $auth->issuer,
101
            issuer   => Encode::decode_utf8($auth->issuer),
102
            key_id   => $auth->key_id,
102
            key_id   => Encode::decode_utf8($auth->key_id),
103
            qr_code  => $auth->qr_code,
103
            qr_code  => $auth->qr_code,
104
            secret32 => $auth->secret32,
104
            secret32 => $auth->secret32,
105
105
106
- 

Return to bug 33904