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:
@@ -104,6 +104,7 @@ async function add() {
|
||||
busy.value = true
|
||||
error.value = ''
|
||||
try {
|
||||
await confirmPassword()
|
||||
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) })
|
||||
adding.value = false
|
||||
|
||||
Reference in New Issue
Block a user