sproctor / php-calendar

PHP-Calendar
http://www.php-calendar.org/
Apache License 2.0
140 stars 67 forks source link

How to disable login #109

Closed SirYaro closed 9 years ago

SirYaro commented 10 years ago

Hi Could you tell me how to disable login feature? My setup require that uid=1 is always logged in without any user interaction. So it should be hardcoded somewhere...

I would be very grateful for your help.

SirYaro commented 10 years ago

Found it! I just had to edit $anonymous in setup.php.

    $anonymous = array('uid' => 1,
                    'username' => 'login',
                    'password' => 'password',
                    'admin' => true,
                    'password_editable' => true,
                    'timezone' => NULL,
                    'language' => NULL,
                    );