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

(-)a/Koha/Patron.pm (-3 / +12 lines)
Lines 1671-1679 sub has_valid_userid { Link Here
1671
my $patron = Koha::Patron->new( $params );
1671
my $patron = Koha::Patron->new( $params );
1672
$patron->generate_userid
1672
$patron->generate_userid
1673
1673
1674
Generate a userid using the $surname and the $firstname (if there is a value in $firstname).
1674
Default behaviour:
1675
1675
1676
Set a generated userid ($firstname.$surname if there is a $firstname, or $surname if there is no value in $firstname) plus offset (0 if the $userid is unique, or a higher numeric value if not unique).
1676
Generate a userid using the $surname and the $firstname (if there is a value in
1677
$firstname).
1678
1679
Set a generated userid ($firstname.$surname if there is a $firstname, or
1680
$surname if there is no value in $firstname) plus offset (0 if the $userid is
1681
unique, or a higher numeric value if not unique).
1682
1683
If PatronSelfRegistrationUseridGenerationMethod is set to 'email', the email
1684
address will be used as the userid. If the patron being created has no email,
1685
or the patron has an email address that is already in use by another patron,
1686
the default way of creating the userid ($firstname.$surname) will be used.
1677
1687
1678
=cut
1688
=cut
1679
1689
1680
- 

Return to bug 29480