Fossil SCM

Make the --admin-user for the "init" command also be the login user. Ticket [1038e224fa3956]

drh 2012-11-27 13:15 trunk merge
Commit 4eb637fd2524239ec9a79ab33cb7851bdd4c6b73
2 files changed +1 +1
+1
--- src/db.c
+++ src/db.c
@@ -1313,10 +1313,11 @@
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 ) g.zLogin = zDefaultUser;
13181319
user_select();
13191320
13201321
if( zTemplate ){
13211322
/*
13221323
** Copy all settings from the supplied template repository.
13231324
--- src/db.c
+++ src/db.c
@@ -1313,10 +1313,11 @@
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,11 @@
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 ) g.zLogin = zDefaultUser;
1319 user_select();
1320
1321 if( zTemplate ){
1322 /*
1323 ** Copy all settings from the supplied template repository.
1324
+1
--- src/db.c
+++ src/db.c
@@ -1313,10 +1313,11 @@
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 ) g.zLogin = zDefaultUser;
13181319
user_select();
13191320
13201321
if( zTemplate ){
13211322
/*
13221323
** Copy all settings from the supplied template repository.
13231324
--- src/db.c
+++ src/db.c
@@ -1313,10 +1313,11 @@
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,11 @@
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 ) g.zLogin = zDefaultUser;
1319 user_select();
1320
1321 if( zTemplate ){
1322 /*
1323 ** Copy all settings from the supplied template repository.
1324

Keyboard Shortcuts

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