HFS 3
  1. accounts
HFS 3
  • Introduction
  • Front-end
    • List files
      GET
    • Upload
      PUT
    • Upload
      POST
    • Delete
      DELETE
    • Create folder
      POST
  • Admin
    • misc
      • get config
      • set config
    • accounts
      • add account
        POST
      • update account
        POST
      • list accounts
        GET
      • delete account
        POST
      • list usernames
        GET
      • get account
        GET
      • list admins
        GET
      • safer update of the password
        POST
    • VFS
    • plugins
      • get plugin config
      • set plugin config
    • monitoring
    • log
  1. accounts

safer update of the password

POST
/~/api/change_srp
use SRP protocol to change the password without transmitting it. If your channel is trusted, you can just specify 'password' in set_account or add_account, that's much simpler.

Request

Header Params
x-hfs-anti-csrf
string 
optional
necessary only for POST requests
Default:
1
Body Params application/json
username
string 
required
salt
string 
required
verifier
string 
required
Example
{
    "username": "string",
    "salt": "string",
    "verifier": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost/~/api/change_srp' \
--header 'x-hfs-anti-csrf: 1' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "string",
    "salt": "string",
    "verifier": "string"
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2025-05-30 14:11:36
Previous
list admins
Next
get plugin config
Built with