AmendHub

Download:

jcs

/

subtext

/

amendments

/

153

db: Set default max_login_seconds to 90

This timer doesn't reset on input, so this has to cover the entire
login process.

jcs made amendment 153 about 1 year ago
--- db.c Sun Jun 12 21:06:03 2022 +++ db.c Fri Jun 17 13:49:25 2022 @@ -244,6 +244,7 @@ db_migrate(struct db *tdb, short is_new) tdb->config.modem_port = 0; sprintf(tdb->config.modem_init, "ATQ0V1S0=2"); tdb->config.max_idle_minutes = 5; + tdb->config.max_login_seconds = 90; db_config_save(tdb); /* create a default sysop user */ @@ -311,8 +312,8 @@ db_migrate(struct db *tdb, short is_new) bile_read(tdb->bile, DB_CONFIG_RTYPE, 1, (char *)&new_config, sizeof(new_config)); - new_config.max_login_seconds = 30; - + new_config.max_login_seconds = 90; + bile_write(tdb->bile, DB_CONFIG_RTYPE, 1, &new_config, sizeof(new_config)); }