Skip to content

Commit ba25e35

Browse files
authored
Merge branch 'development' into feature/update-package
2 parents 5a99262 + 221008a commit ba25e35

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/middleware/authenticated.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Middleware } from '@nuxt/types'
22
import { withSSRContext } from 'aws-amplify'
33

4-
const authenticated: Middleware = async ({ redirect }) => {
4+
const authenticated: Middleware = async ({ redirect, localePath }) => {
55
const { Auth } = withSSRContext()
66
const userInfo = await Auth.currentUserInfo()
77

88
if (!userInfo) {
9-
redirect('/user/login')
9+
redirect(localePath('/user/login'))
1010
}
1111
}
1212

src/middleware/checkClassData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Middleware } from '@nuxt/types'
22
import { vxm } from '@/store'
33

4-
const checkClassData: Middleware = ({ redirect }) => {
4+
const checkClassData: Middleware = ({ redirect, localePath }) => {
55
if (!vxm.classData.isLoaded) {
6-
return redirect('/')
6+
return redirect(localePath('/'))
77
}
88
}
99

src/pages/user/signup.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ export default Vue.extend({
113113
const reg = /[ -~]{6,}$/
114114
const response = reg.test(this.password)
115115
if (!response) {
116-
return 'パスワードが条件を満たしていません'
116+
return this.$tc('common.user_data.labels.password_not_acceptable')
117117
}
118118
}
119119
if (this.password && this.confirmation) {
120120
if (this.password !== this.confirmation) {
121-
return 'パスワードが一致していません'
121+
return this.$tc('common.user_data.labels.password_not_same')
122122
}
123123
return ''
124124
}

0 commit comments

Comments
 (0)