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

(-)a/Koha/Patron.pm (-9 / +8 lines)
Lines 2132-2143 sub can_patron_change_staff_only_lists { Link Here
2132
    return 0;
2132
    return 0;
2133
}
2133
}
2134
2134
2135
=head3
2135
=head3 encode_secret
2136
2136
2137
    $patron->encode_secret($secret32);
2137
  $patron->encode_secret($secret32);
2138
2138
2139
    Secret (TwoFactorAuth expects it in base32 format) is encrypted.
2139
Secret (TwoFactorAuth expects it in base32 format) is encrypted.
2140
    You still need to call ->store.
2140
You still need to call ->store.
2141
2141
2142
=cut
2142
=cut
2143
2143
Lines 2149-2160 sub encode_secret { Link Here
2149
    return $self->secret($secret);
2149
    return $self->secret($secret);
2150
}
2150
}
2151
2151
2152
=head3
2152
=head3 decoded_secret
2153
2153
2154
    my $secret32 = $patron->decoded_secret;
2154
  my $secret32 = $patron->decoded_secret;
2155
2155
2156
    Decode the patron secret. We expect to get back a base32 string, but this
2156
Decode the patron secret. We expect to get back a base32 string, but this
2157
    is not checked here. Caller of encode_secret is responsible for that.
2157
is not checked here. Caller of encode_secret is responsible for that.
2158
2158
2159
=cut
2159
=cut
2160
2160
2161
- 

Return to bug 28998