Fossil SCM

Suggested fix for [1038e224fa]

jan.nijtmans 2012-11-27 11:10 UTC trunk
Commit 9f3622b22a654f51deb73ec85b4257a948582edd
1 file changed +3
+3
--- src/db.c
+++ src/db.c
@@ -1313,10 +1313,13 @@
13131313
);
13141314
}
13151315
if( !db_is_global("autosync") ) db_set_int("autosync", 1, 0);
13161316
if( !db_is_global("localauth") ) db_set_int("localauth", 0, 0);
13171317
db_create_default_users(0, zDefaultUser);
1318
+ if (zDefaultUser){
1319
+ g.zLogin = zDefaultUser;
1320
+ }
13181321
user_select();
13191322
13201323
if( zTemplate ){
13211324
/*
13221325
** Copy all settings from the supplied template repository.
13231326
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button