Locations: ask for password confirmation before adding

addTarget requires a recent password confirmation, but the form never
asked for one. Within 30 minutes of logging in that went unnoticed; after
that, adding a location failed with a bare 403.
This commit is contained in:
2026-10-08 00:40:48 +02:00
parent 209520165e
commit 7c08a10621
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -7,6 +7,12 @@ the app store accepts a `-beta` suffix, but Nextcloud servers then only offer th
beta/daily update channel, which would hide the app from most admins. The stability stage is beta/daily update channel, which would hide the app from most admins. The stability stage is
instead carried by the app description, the git tag, the release, and this file. instead carried by the app description, the git tag, the release, and this file.
## [Unreleased]
### Fixed
- Adding a backup location in the web interface failed with "Request failed with status code 403"
when the login was more than 30 minutes old: the form did not ask for password confirmation.
## [0.9.1-beta.2] - 2026-10-07 ## [0.9.1-beta.2] - 2026-10-07
Second beta, the first release in the Nextcloud app store (signed). Second beta, the first release in the Nextcloud app store (signed).
+1
View File
@@ -104,6 +104,7 @@ async function add() {
busy.value = true busy.value = true
error.value = '' error.value = ''
try { try {
await confirmPassword()
await api.addTarget({ name: form.name, backend: backend.value.id, auth: auth.value.id, options: form.options, path: form.path, await api.addTarget({ name: form.name, backend: backend.value.id, auth: auth.value.id, options: form.options, path: form.path,
maxGb: form.maxGb === '' ? null : Number(form.maxGb) }) maxGb: form.maxGb === '' ? null : Number(form.maxGb) })
adding.value = false adding.value = false