Skip to main content

auth.init

If the Porla instance requires setup (i.e no users in the database) then this method can be used to create the initial user.

After the first user exists, every call will fail with -1.

Request​

{
"username": "root",
"password": "hunter2"
}

Response​

null

Errors​

CodeReason
-1Auth already initialized
-2Failed to hash password
-3Username and password must not be empty