Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
OrangeM21
2020-06-03 14:11:44 +08:00

View File

@@ -40,10 +40,10 @@ export default {
click: function() { click: function() {
if (this.object.mfa_enabled) { if (this.object.mfa_enabled) {
if (!this.object.mfa_force_enabled) { if (!this.object.mfa_force_enabled) {
window.location.href = `/core/users/profile/otp/disable/authentication/?next=${this.$route.fullPath}` window.location.href = `/core/auth/profile/otp/disable/authentication/?next=${this.$route.fullPath}`
} }
} else { } else {
window.location.href = `/core/users/profile/otp/enable/start/?next=${this.$route.fullPath}` window.location.href = `/core/auth/profile/otp/enable/start/?next=${this.$route.fullPath}`
} }
}.bind(this) }.bind(this)
} }
@@ -56,7 +56,7 @@ export default {
}, },
callbacks: { callbacks: {
click: function() { click: function() {
window.location.href = `/core/users/profile/otp/update/?next=${this.$route.fullPath}` window.location.href = `/core/auth/profile/otp/update/?next=${this.$route.fullPath}`
}.bind(this) }.bind(this)
} }
}, },
@@ -68,7 +68,7 @@ export default {
}, },
callbacks: { callbacks: {
click: function() { click: function() {
window.open(`/core/users/profile/pubkey/generate/`, '_blank') window.open(`/core/auth/profile/pubkey/generate/`, '_blank')
} }
} }
} }