Fossil SCM
Add a note to /setup_uedit that leaving the ostensibly populated password field unchanged will retain the current password, per discussion in [forum:0463cc2e87a3c676|forum post 0463cc2e87a3c676]. (Branched for later addition to v2.21.)
Commit
fe373994876b3ea94bab2986133475b74a75f8c44f90d069099f9e3a42a1c08a
Parent
0d61fd23101299a…
1 file changed
+2
-1
+2
-1
| --- src/setupuser.c | ||
| +++ src/setupuser.c | ||
| @@ -733,11 +733,12 @@ | ||
| 733 | 733 | @ <tr> |
| 734 | 734 | @ <td align="right" id="supw">Password:</td> |
| 735 | 735 | if( zPw[0] ){ |
| 736 | 736 | /* Obscure the password for all users */ |
| 737 | 737 | @ <td><input aria-labelledby="supw" type="password" autocomplete="off" \ |
| 738 | - @ name="pw" value="**********" /></td> | |
| 738 | + @ name="pw" value="**********" /> | |
| 739 | + @ (Leave unchanged to retain password)</td> | |
| 739 | 740 | }else{ |
| 740 | 741 | /* Show an empty password as an empty input field */ |
| 741 | 742 | char *zRPW = fossil_random_password(12); |
| 742 | 743 | @ <td><input aria-labelledby="supw" type="password" name="pw" \ |
| 743 | 744 | @ autocomplete="off" value="" /> Password suggestion: %z(zRPW)</td> |
| 744 | 745 |
| --- src/setupuser.c | |
| +++ src/setupuser.c | |
| @@ -733,11 +733,12 @@ | |
| 733 | @ <tr> |
| 734 | @ <td align="right" id="supw">Password:</td> |
| 735 | if( zPw[0] ){ |
| 736 | /* Obscure the password for all users */ |
| 737 | @ <td><input aria-labelledby="supw" type="password" autocomplete="off" \ |
| 738 | @ name="pw" value="**********" /></td> |
| 739 | }else{ |
| 740 | /* Show an empty password as an empty input field */ |
| 741 | char *zRPW = fossil_random_password(12); |
| 742 | @ <td><input aria-labelledby="supw" type="password" name="pw" \ |
| 743 | @ autocomplete="off" value="" /> Password suggestion: %z(zRPW)</td> |
| 744 |
| --- src/setupuser.c | |
| +++ src/setupuser.c | |
| @@ -733,11 +733,12 @@ | |
| 733 | @ <tr> |
| 734 | @ <td align="right" id="supw">Password:</td> |
| 735 | if( zPw[0] ){ |
| 736 | /* Obscure the password for all users */ |
| 737 | @ <td><input aria-labelledby="supw" type="password" autocomplete="off" \ |
| 738 | @ name="pw" value="**********" /> |
| 739 | @ (Leave unchanged to retain password)</td> |
| 740 | }else{ |
| 741 | /* Show an empty password as an empty input field */ |
| 742 | char *zRPW = fossil_random_password(12); |
| 743 | @ <td><input aria-labelledby="supw" type="password" name="pw" \ |
| 744 | @ autocomplete="off" value="" /> Password suggestion: %z(zRPW)</td> |
| 745 |