Skip to content

Remote browser login #32

@su-sd

Description

@su-sd

If somebody needs to connect without access to the "login-wifi", you can use the following script in the browser console:

let password =  "PASSWORD";
let result = await (await fetch(
	"https://IP/v1/user/setting/login",
	{
		method: "PUT",
		body: JSON.stringify({"password": password}),
		headers: {
			"Charset": "UTF-8",
			"Content-Type": "application/json",
		},
	})).json();
sessionStorage.setItem('auth_key', result.auth_key)
sessionStorage.setItem("role", "user")

Not sure where to document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions