Skip to content

Commit 7ce4d57

Browse files
committed
fix: interpolate sign-request uuid into account create URL
generateOcsUrl('/apps/libresign/api/v1/account/create/{uuid}') was called without the params object, so the literal string '{uuid}' was sent as the path segment. The backend validates the uuid with UUIDUtil::validateUUID() and rejects the literal placeholder with 'Invalid UUID'. Pass the uuid route param as the second argument to generateOcsUrl so the placeholder is replaced before the HTTP request is made. Closes #7313 Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent ce23288 commit 7ce4d57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/views/CreateAccount.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,9 @@ onBeforeMount(() => {
241241
async function createAccount() {
242242
state.loading = true
243243
try {
244-
await axios.post(generateOcsUrl('/apps/libresign/api/v1/account/create/{uuid}'), {
244+
await axios.post(generateOcsUrl('/apps/libresign/api/v1/account/create/{uuid}', {
245245
uuid: route.value.params.uuid ?? '',
246+
}), {
246247
email: state.email,
247248
password: state.password,
248249
})

0 commit comments

Comments
 (0)