Fossil

Check-in [a5404e30]
Login

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

Overview
Comment:Only prompt for password save if the to-be-saved password is different from the already saved password
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | url-password-fixes
Files: files | file ages | folders
SHA1:a5404e30cbb4759efcbdba2313dc89ee2c721b0e
User & Date: jan.nijtmans 2013-11-02 10:57:54
Context
2013-11-02
11:16
Don't crash if last-sync-pw was never set yet. check-in: a2829230 user: jan.nijtmans tags: url-password-fixes
10:57
Only prompt for password save if the to-be-saved password is different from the already saved password check-in: a5404e30 user: jan.nijtmans tags: url-password-fixes
06:19
Only prompt to save the password if there is a tty. check-in: 34b2f067 user: andybradford tags: url-password-fixes
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/user.c.

133
134
135
136
137
138
139




140
141
142
143
144
145
146

/*
** Prompt to save Fossil user password
*/
int save_password_prompt(){
  Blob x;
  char c;




  prompt_user("remember password (Y/n)? ", &x);
  c = blob_str(&x)[0];
  blob_reset(&x);
  return ( c!='n' && c!='N' );
}

/*







>
>
>
>







133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150

/*
** Prompt to save Fossil user password
*/
int save_password_prompt(){
  Blob x;
  char c;
  const char *old = unobscure(db_get("last-sync-pw", 0));
  if( (old!=0) && !strcmp(old, g.urlPasswd) ){
     return 0;
  }
  prompt_user("remember password (Y/n)? ", &x);
  c = blob_str(&x)[0];
  blob_reset(&x);
  return ( c!='n' && c!='N' );
}

/*