mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #41522 from nextcloud/backport/41520/stable26
[stable26] Finish password confirmation
This commit is contained in:
commit
94ef279f59
5 changed files with 12 additions and 7 deletions
|
|
@ -99,6 +99,7 @@ abstract class AWorkflowController extends OCSController {
|
|||
}
|
||||
|
||||
/**
|
||||
* @PasswordConfirmationRequired
|
||||
* @throws OCSBadRequestException
|
||||
* @throws OCSForbiddenException
|
||||
* @throws OCSException
|
||||
|
|
@ -127,6 +128,7 @@ abstract class AWorkflowController extends OCSController {
|
|||
}
|
||||
|
||||
/**
|
||||
* @PasswordConfirmationRequired
|
||||
* @throws OCSBadRequestException
|
||||
* @throws OCSForbiddenException
|
||||
* @throws OCSException
|
||||
|
|
@ -155,6 +157,7 @@ abstract class AWorkflowController extends OCSController {
|
|||
}
|
||||
|
||||
/**
|
||||
* @PasswordConfirmationRequired
|
||||
* @throws OCSBadRequestException
|
||||
* @throws OCSForbiddenException
|
||||
* @throws OCSException
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ class UserWorkflowsController extends AWorkflowController {
|
|||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @PasswordConfirmationRequired
|
||||
* @throws OCSBadRequestException
|
||||
* @throws OCSForbiddenException
|
||||
*/
|
||||
|
|
@ -90,6 +91,7 @@ class UserWorkflowsController extends AWorkflowController {
|
|||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @PasswordConfirmationRequired
|
||||
* @throws OCSBadRequestException
|
||||
* @throws OCSForbiddenException
|
||||
*/
|
||||
|
|
@ -99,6 +101,7 @@ class UserWorkflowsController extends AWorkflowController {
|
|||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @PasswordConfirmationRequired
|
||||
* @throws OCSForbiddenException
|
||||
*/
|
||||
public function destroy(int $id): DataResponse {
|
||||
|
|
|
|||
|
|
@ -89,7 +89,8 @@ const store = new Store({
|
|||
context.commit('addRule', rule)
|
||||
})
|
||||
},
|
||||
createNewRule(context, rule) {
|
||||
async createNewRule(context, rule) {
|
||||
await confirmPassword()
|
||||
let entity = null
|
||||
let events = []
|
||||
if (rule.isComplex === false && rule.fixedEntity === '') {
|
||||
|
|
@ -120,9 +121,7 @@ const store = new Store({
|
|||
context.commit('removeRule', rule)
|
||||
},
|
||||
async pushUpdateRule(context, rule) {
|
||||
if (context.state.scope === 0) {
|
||||
await confirmPassword()
|
||||
}
|
||||
await confirmPassword()
|
||||
let result
|
||||
if (rule.id < 0) {
|
||||
result = await axios.post(getApiUrl(''), rule)
|
||||
|
|
|
|||
4
dist/workflowengine-workflowengine.js
vendored
4
dist/workflowengine-workflowengine.js
vendored
File diff suppressed because one or more lines are too long
2
dist/workflowengine-workflowengine.js.map
vendored
2
dist/workflowengine-workflowengine.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue