Automatic Logins

From WebCalendar Wiki

Jump to: navigation, search

Enabling automatic logins for this version of WebCalendar will require that you edit login.php (**note:** before editing any files, always make a backup).

Open login.php and find the lines:

 $login = getPostValue ( 'login' );
 $password = getPostValue ( 'password' );

Change them to read:

 $login = getPostValue ( 'login' );
 if (empty ( $login ) ) $login = getGetValue ( 'login' );
 $password = getPostValue ( 'password' );
 if (empty ( $password ) ) $password = getGetValue ( 'password' );


Please be aware that if you choose to use this approach your username/password will be visible. A better approach would be to login manually and enable "Save login via cookies so I don't have to login next time".

Personal tools