From c8c6d1e8cc86565fb0e0fd290317f28e76bbff3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 3 Jan 2011 16:13:06 +0100 Subject: [PATCH] Zugriffsrechte auf der Konsole laden. Normal wird form->{login} beim login implizit gesetzt. Muss hier manuell pasieren. --- scripts/console | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/console b/scripts/console index ca20b2bfe..e3129a0d4 100755 --- a/scripts/console +++ b/scripts/console @@ -78,8 +78,12 @@ sub lxinit { require "bin/mozilla/common.pl"; die "cannot find user $login" unless %::myconfig = $::auth->read_user($login); + + $::form->{login} = $login; # normaly implicit at login + die "cannot find locale for user $login" unless $::locale = Locale->new($::myconfig{countrycode}); + return "logged in as $login"; } -- 2.20.1