Skip to content

Commit

Permalink
users, rest: Add note about accepting already hashed GUI password. (#828
Browse files Browse the repository at this point in the history
  • Loading branch information
acolomb authored Oct 5, 2023
1 parent 46cecbf commit dfbdd5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions rest/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,8 @@ patterns to be used by default on folders, as an array of single-line strings.

``GET`` returns the respective object, ``PUT`` replaces the entire object and
``PATCH`` replaces only the given child objects.

.. note::
The :stconf:opt:`gui.password` configuration option has special handling to
accept already hashed passwords. Any valid bcrypt hash is stored verbatim,
while a plaintext password is first hashed.
7 changes: 4 additions & 3 deletions users/syncthing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ Options
.. cmdoption:: --gui-password=<password|->

Specify new GUI authentication password, to update the config file. Read
from the standard input stream if only a single dash (``-``) is given. The
password is hashed before writing to the config file. As a special case,
giving the existing password hash as password will leave it untouched.
from the standard input stream if only a single dash (``-``) is given. A
plaintext password is hashed before writing to the config file, but an
already bcrypt-hashed input is stored verbatim. As a special case, giving
the existing password hash as password will leave it untouched.

.. cmdoption:: --gui-user=<username>

Expand Down

0 comments on commit dfbdd5f

Please sign in to comment.