Commit 292b1952 authored by les's avatar les
Browse files

upgrade deps

parent 5cbc45a9
......@@ -74,9 +74,6 @@ module.exports = {
maxAge: 60 * 60 * 24 * 30 * 12 * 5
}
},
redirect: {
login: '../login'
},
strategies: {
local: {
endpoints: {
......
......@@ -62,12 +62,12 @@
"body-parser": "^1.18.3",
"bootstrap": "^4.5.0",
"config": "^3.3.1",
"consola": "^2.12.1",
"consola": "^2.12.2",
"cookie-parser": "^1.4.5",
"cors": "^2.8.5",
"cross-env": "^7.0.2",
"date-fns": "^2.14.0",
"dayjs": "^1.8.27",
"dayjs": "^1.8.28",
"dompurify": "^2.0.11",
"element-ui": "^2.13.2",
"email-templates": "^7.0.5",
......@@ -78,7 +78,7 @@
"inquirer": "^7.1.0",
"jsdom": "^16.2.2",
"jsonwebtoken": "^8.5.1",
"less": "^3.11.1",
"less": "^3.11.2",
"linkifyjs": "^2.1.9",
"lodash": "^4.17.14",
"mkdirp": "^1.0.4",
......@@ -89,7 +89,7 @@
"nuxt": "^2.12.2",
"nuxt-express-module": "^0.0.11",
"pg": "^8.2.1",
"sequelize": "^5.21.10",
"sequelize": "^5.21.11",
"sequelize-cli": "^5.5.1",
"sharp": "^0.25.3",
"sqlite3": "^4.2.0",
......@@ -99,27 +99,27 @@
"v-calendar": "^1.0.6",
"vue-awesome": "^4.0.0",
"vue-clipboard2": "^0.3.1",
"vue-i18n": "^8.17.7",
"vue-i18n": "^8.18.1",
"yargs": "^15.3.1"
},
"devDependencies": {
"@nuxtjs/eslint-config": "^2.0.2",
"@nuxtjs/eslint-config": "^3.0.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-config-standard": ">=14.1.1",
"eslint-loader": "^3.0.3",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": ">=2.20.2",
"eslint-plugin-jest": ">=23.8.2",
"eslint-plugin-jest": "^23.13.2",
"eslint-plugin-node": ">=11.1.0",
"eslint-plugin-nuxt": ">=0.5.2",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-nuxt": "^1.0.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-promise": ">=4.0.1",
"eslint-plugin-standard": ">=4.0.1",
"eslint-plugin-vue": "^6.2.2",
"less-loader": "^5.0.0",
"nodemon": "^2.0.2",
"prettier": "^2.0.2",
"less-loader": "^6.1.0",
"nodemon": "^2.0.4",
"prettier": "^2.0.5",
"pug-plain-loader": "^1.0.0",
"webpack-cli": "^3.3.11"
}
......
......@@ -17,9 +17,6 @@ import { Message } from 'element-ui'
export default {
name: 'Recover',
data () {
return { new_password: '' }
},
async asyncData ({ params, $axios }) {
const code = params.code
try {
......@@ -29,10 +26,13 @@ export default {
return { valid: false }
}
},
data () {
return { new_password: '' }
},
methods: {
async change_password () {
try {
const res = await this.$axios.$post('/user/recover_password', { recover_code: this.code, password: this.new_password })
await this.$axios.$post('/user/recover_password', { recover_code: this.code, password: this.new_password })
Message({
showClose: true,
type: 'success',
......
......@@ -18,9 +18,6 @@ import { Message } from 'element-ui'
export default {
name: 'Recover',
data () {
return { new_password: '' }
},
async asyncData ({ params, $axios }) {
const code = params.code
try {
......@@ -30,10 +27,13 @@ export default {
return { valid: false }
}
},
data () {
return { new_password: '' }
},
methods: {
async change_password () {
try {
const res = await this.$axios.$post('/user/recover_password', { recover_code: this.code, password: this.new_password })
await this.$axios.$post('/user/recover_password', { recover_code: this.code, password: this.new_password })
Message({
showClose: true,
type: 'success',
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment