Fossil SCM
Suggested fix for [1038e224fa]
Commit
9f3622b22a654f51deb73ec85b4257a948582edd
Parent
d27cddf17cc25c5…
1 file changed
+3
M
src/db.c
+3
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1313,10 +1313,13 @@ | ||
| 1313 | 1313 | ); |
| 1314 | 1314 | } |
| 1315 | 1315 | if( !db_is_global("autosync") ) db_set_int("autosync", 1, 0); |
| 1316 | 1316 | if( !db_is_global("localauth") ) db_set_int("localauth", 0, 0); |
| 1317 | 1317 | db_create_default_users(0, zDefaultUser); |
| 1318 | + if (zDefaultUser){ | |
| 1319 | + g.zLogin = zDefaultUser; | |
| 1320 | + } | |
| 1318 | 1321 | user_select(); |
| 1319 | 1322 | |
| 1320 | 1323 | if( zTemplate ){ |
| 1321 | 1324 | /* |
| 1322 | 1325 | ** Copy all settings from the supplied template repository. |
| 1323 | 1326 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1313,10 +1313,13 @@ | |
| 1313 | ); |
| 1314 | } |
| 1315 | if( !db_is_global("autosync") ) db_set_int("autosync", 1, 0); |
| 1316 | if( !db_is_global("localauth") ) db_set_int("localauth", 0, 0); |
| 1317 | db_create_default_users(0, zDefaultUser); |
| 1318 | user_select(); |
| 1319 | |
| 1320 | if( zTemplate ){ |
| 1321 | /* |
| 1322 | ** Copy all settings from the supplied template repository. |
| 1323 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1313,10 +1313,13 @@ | |
| 1313 | ); |
| 1314 | } |
| 1315 | if( !db_is_global("autosync") ) db_set_int("autosync", 1, 0); |
| 1316 | if( !db_is_global("localauth") ) db_set_int("localauth", 0, 0); |
| 1317 | db_create_default_users(0, zDefaultUser); |
| 1318 | if (zDefaultUser){ |
| 1319 | g.zLogin = zDefaultUser; |
| 1320 | } |
| 1321 | user_select(); |
| 1322 | |
| 1323 | if( zTemplate ){ |
| 1324 | /* |
| 1325 | ** Copy all settings from the supplied template repository. |
| 1326 |