MCPcopy Index your code
hub / github.com/Dispatcharr/Dispatcharr / createSuperUser

Method createSuperUser

frontend/src/api.js:158–177  ·  view source on GitHub ↗
({ username, email, password })

Source from the content-addressed store, hash-verified

156 }
157
158 static async createSuperUser({ username, email, password }) {
159 try {
160 const response = await request(
161 `${host}/api/accounts/initialize-superuser/`,
162 {
163 auth: false,
164 method: 'POST',
165 body: {
166 username,
167 password,
168 email,
169 },
170 }
171 );
172
173 return response;
174 } catch (e) {
175 errorNotification('Failed to create superuser', e);
176 }
177 }
178
179 static async login(username, password) {
180 try {

Callers 1

createSuperUserFunction · 0.80

Calls 2

requestFunction · 0.85
errorNotificationFunction · 0.85

Tested by

no test coverage detected