feat: pemissions
Integration Tests / Integration Tests (pull_request) Successful in 52s

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-07-23 18:01:26 -04:00
parent e36a1dbfba
commit 3e921fc07e
6 changed files with 109 additions and 29 deletions
+17 -4
View File
@@ -30,8 +30,15 @@ const confirmPassword = ref('');
const loadStatus = async () => {
statusLoading.value = true;
try {
const response = await fetch(`/m/authentication_provider_password/admin/status/${props.user.uid}`, {
const response = await fetch('/m/authentication_provider_password/status', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
credentials: 'include',
body: JSON.stringify({
uid: props.user.uid,
}),
});
if (response.ok) {
@@ -60,7 +67,7 @@ const resetPassword = async () => {
error.value = null;
try {
const response = await fetch('/m/authentication_provider_password/admin/reset', {
const response = await fetch('/m/authentication_provider_password/reset', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -95,9 +102,15 @@ const removePassword = async () => {
error.value = null;
try {
const response = await fetch(`/m/authentication_provider_password/admin/remove/${props.user.uid}`, {
method: 'DELETE',
const response = await fetch('/m/authentication_provider_password/remove', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
credentials: 'include',
body: JSON.stringify({
uid: props.user.uid,
}),
});
if (response.ok) {