Frontend: licence_number>number, password update enabled
This commit is contained in:
@@ -34,7 +34,7 @@ export const actions = {
|
||||
console.dir(processedData.user.membership);
|
||||
const isCreating = !processedData.user.id || processedData.user.id === 0;
|
||||
console.log('Is creating: ', isCreating);
|
||||
const apiURL = `${BASE_API_URI}/backend/users/update`;
|
||||
const apiURL = `${BASE_API_URI}/backend/users/upsert`;
|
||||
|
||||
/** @type {RequestInit} */
|
||||
const requestOptions = {
|
||||
@@ -59,6 +59,6 @@ export const actions = {
|
||||
console.log('Server success response:', response);
|
||||
locals.user = response;
|
||||
userDatesFromRFC3339(locals.user);
|
||||
throw redirect(303, `/auth/about/${response.id}`);
|
||||
throw redirect(303, `/auth/admin/users`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user