Fossil

Check-in [003c3e6c8a]
Login

Check-in [003c3e6c8a]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Teach the chat pull subcommand to prompt for a password if no password has been remembered for the remote. Resolves the problem reported in [forum:ea82cf10d4|forum post ea82cf10d4].
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 003c3e6c8a8863463e46954ea77e2385ec96e7d67bb998a53f687afc22d0b68a
User & Date: stephan 2024-02-23 00:38:45.359
Context
2024-02-23
01:20
Comment cell highlighting in /timeline now takes into account the compact and verbose modes better, and it separates out the rounding from the coloring so it can apply less rounding and a bit more padding in these same two cases, to avoid having the text near the corners crash into the borders. ... (check-in: b272004beb user: wyoung tags: trunk)
00:38
Teach the chat pull subcommand to prompt for a password if no password has been remembered for the remote. Resolves the problem reported in [forum:ea82cf10d4|forum post ea82cf10d4]. ... (check-in: 003c3e6c8a user: stephan tags: trunk)
2024-02-22
20:08
Fix an incorrect comment on the previous check-in. ... (check-in: 0d2befb04d user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/chat.c.
1215
1216
1217
1218
1219
1220
1221
1222








1223
1224
1225
1226
1227
1228
1229
    blob_appendf(&reqUri, "/chat-backup?msgid=%d", msgid);
    if( g.url.user && g.url.user[0] ){
      zObs = obscure(g.url.user);
      blob_appendf(&reqUri, "&resid=%t", zObs);
      fossil_free(zObs);
    }
    zPw = g.url.passwd;
    if( zPw==0 && isDefaultUrl ) zPw = unobscure(db_get("last-sync-pw", 0));








    if( zPw && zPw[0] ){
      zObs = obscure(zPw);
      blob_appendf(&reqUri, "&token=%t", zObs);
      fossil_free(zObs);
    }
    g.url.path = blob_str(&reqUri);
    if( bDebug ){







|
>
>
>
>
>
>
>
>







1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
    blob_appendf(&reqUri, "/chat-backup?msgid=%d", msgid);
    if( g.url.user && g.url.user[0] ){
      zObs = obscure(g.url.user);
      blob_appendf(&reqUri, "&resid=%t", zObs);
      fossil_free(zObs);
    }
    zPw = g.url.passwd;
    if( zPw==0 && isDefaultUrl ){
      zPw = unobscure(db_get("last-sync-pw", 0));
      if( zPw==0 ){
        /* Can happen if "remember password" is not used. */
        g.url.flags |= URL_PROMPT_PW;
        url_prompt_for_password();
        zPw = g.url.passwd;
      }
    }
    if( zPw && zPw[0] ){
      zObs = obscure(zPw);
      blob_appendf(&reqUri, "&token=%t", zObs);
      fossil_free(zObs);
    }
    g.url.path = blob_str(&reqUri);
    if( bDebug ){