How to change the password of the admin user

Introduction

Use the Account call to change the password of the admin user.

Usage

Changing the admin's password requires authentication, so make sure you obtain a valid session ID first, see How to authenticate to the API.

Use the password_set method to change the password. Let's say you want to change your password to t0ps3cr3t.

curl --request POST \
     --url "192.168.140.1/ubus" \
     --data '
     {
         "jsonrpc": "2.0",
         "id": 1,
         "method": "call",
         "params": [
             "0a3e1036df206a33fcd6573a524c1ef2",
             "ixon.ui.account",
             "password_set",
             {
                 "password": "t0ps3cr3t"
             }
         ]
     }'
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        0
    ]
}

📘

TIP

The password needs to be at least 8 characters long.

🚧

WARNING

The password printed on the side of your IXrouter will no longer be accepted. If you lose your new admin credentials you can factory reset your IXrouter to restore the printed password.


Did this page help you?