diff options
Diffstat (limited to 'scripts/system/vyatta_update_login_user.pl')
-rwxr-xr-x | scripts/system/vyatta_update_login_user.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/system/vyatta_update_login_user.pl b/scripts/system/vyatta_update_login_user.pl index b246cee6..fa403224 100755 --- a/scripts/system/vyatta_update_login_user.pl +++ b/scripts/system/vyatta_update_login_user.pl @@ -140,6 +140,10 @@ my %group_map = ( 'admin' => 'quaggavty', 'users' => 'users', ); +# XXX temporary workaround until "default:" works in CLI backend. +if (!defined($group) || $group eq '') { + $group = 'admin'; +} exit 4 if (!defined($user) || !defined($full) || !defined($encrypted) || !defined($group)); exit 4 if (!defined($group_map{$group})); |