# @tag: clients
-# @description: Einführung von Mandaten
+# @description: Einführung von Mandanten
# @depends: release_3_0_0
# @ignore: 0
-package SL::DBUpgrade2::clients;
+package SL::DBUpgrade2::Auth::clients;
use strict;
use utf8;
push @clients, {
map({ $_ => $user->{$_} } @copy_fields),
- name => $::locale->text('Client #1', scalar(@clients) + 1),
users => [ $user->{id} ],
groups => [ map { $_->{id} } @{ $self->groups } ],
enabled => 1,
my $num = 0;
foreach my $client (@clients) {
$num += 1;
+ $client->{name} ||= $::locale->text('Client #1', $num);
$client->{dbhost} ||= 'localhost';
$client->{dbport} ||= 5432;
$client->{templates} =~ s:templates/::;