fix: add password confirmation

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2024-11-11 14:15:24 +01:00
Родитель b43330436e
Коммит 287e5d7b78
3 изменённых файлов: 57 добавлений и 5 удалений

57
package-lock.json сгенерированный
Просмотреть файл

@ -1,12 +1,12 @@
{
"name": "integration_google",
"version": "3.0.2",
"version": "3.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "integration_google",
"version": "3.0.2",
"version": "3.1.0",
"license": "AGPL-3.0",
"dependencies": {
"@nextcloud/auth": "^2.0.0",
@ -15,6 +15,7 @@
"@nextcloud/initial-state": "^2.0.0",
"@nextcloud/l10n": "^1.4.0",
"@nextcloud/moment": "^1.1.1",
"@nextcloud/password-confirmation": "^5.1.1",
"@nextcloud/router": "^2.0.0",
"@nextcloud/vue": "8.x",
"vue": "^2.6.14",
@ -26,8 +27,8 @@
"@nextcloud/eslint-config": "8.x",
"@nextcloud/stylelint-config": "^3.x",
"@nextcloud/webpack-vue-config": "6.x",
"eslint-webpack-plugin": "^4.2.0",
"stylelint-webpack-plugin": "^5.0.1"
"eslint-webpack-plugin": "4.x",
"stylelint-webpack-plugin": "5.x"
},
"engines": {
"node": "^16.0.0",
@ -2817,6 +2818,54 @@
"node-gettext": "^3.0.0"
}
},
"node_modules/@nextcloud/password-confirmation": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/@nextcloud/password-confirmation/-/password-confirmation-5.1.1.tgz",
"integrity": "sha512-UlQcjVe/fr/JaJ6TWaRM+yBLIEZRU6RWMy0JoExcA6UVJs2HJrRIyVMuiCLuIYlH23ReJH+z7zFI3+V7vdeJ1Q==",
"dependencies": {
"@nextcloud/axios": "^2.5.0",
"@nextcloud/l10n": "^3.1.0",
"@nextcloud/router": "^3.0.1"
},
"engines": {
"node": "^20.0.0",
"npm": "^10.0.0"
},
"peerDependencies": {
"@nextcloud/vue": "^8.0.0",
"vue": "^2.7.16"
}
},
"node_modules/@nextcloud/password-confirmation/node_modules/@nextcloud/l10n": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@nextcloud/l10n/-/l10n-3.1.0.tgz",
"integrity": "sha512-unciqr8QSJ29vFBw9S1bquyoj1PTWHszNL8tcUNuxUAYpq0hX+8o7rpB5gimELA4sj4m9+VCJwgLtBZd1Yj0lg==",
"dependencies": {
"@nextcloud/router": "^3.0.1",
"@nextcloud/typings": "^1.8.0",
"@types/dompurify": "^3.0.5",
"@types/escape-html": "^1.0.4",
"dompurify": "^3.1.2",
"escape-html": "^1.0.3",
"node-gettext": "^3.0.0"
},
"engines": {
"node": "^20.0.0",
"npm": "^10.0.0"
}
},
"node_modules/@nextcloud/password-confirmation/node_modules/@nextcloud/router": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/@nextcloud/router/-/router-3.0.1.tgz",
"integrity": "sha512-Ci/uD3x8OKHdxSqXL6gRJ+mGJOEXjeiHjj7hqsZqVTsT7kOrCjDf0/J8z5RyLlokKZ0IpSe+hGxgi3YB7Gpw3Q==",
"dependencies": {
"@nextcloud/typings": "^1.7.0"
},
"engines": {
"node": "^20.0.0",
"npm": "^10.0.0"
}
},
"node_modules/@nextcloud/router": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/@nextcloud/router/-/router-2.2.1.tgz",

Просмотреть файл

@ -42,6 +42,7 @@
"@nextcloud/initial-state": "^2.0.0",
"@nextcloud/l10n": "^1.4.0",
"@nextcloud/moment": "^1.1.1",
"@nextcloud/password-confirmation": "^5.1.1",
"@nextcloud/router": "^2.0.0",
"@nextcloud/vue": "8.x",
"vue": "^2.6.14",

Просмотреть файл

@ -74,6 +74,7 @@ import axios from '@nextcloud/axios'
import { delay } from '../utils.js'
import { showSuccess, showError } from '@nextcloud/dialogs'
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import {confirmPassword} from '@nextcloud/password-confirmation'
export default {
name: 'AdminSettings',
@ -105,7 +106,8 @@ export default {
},
onInput() {
const that = this
delay(() => {
delay(async() => {
await confirmPassword()
that.saveOptions({
client_id: this.state.client_id,
client_secret: this.state.client_secret,