Skip to content

Commit b026697

Browse files
perf: Improve error prompts for OAuth2 address validation
1 parent 02c945a commit b026697

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/views/system/authentication/Oauth2Editor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const form_config_list = ref<any[]>([
7676
const validateUrl = (rule, value, callback) => {
7777
const reg = new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/)
7878
if (!reg.test(value)) {
79-
callback(new Error(t('system.incorrect_please_re_enter_de')))
79+
callback(new Error(t('authentication.incorrect_please_re_enter')))
8080
} else {
8181
callback()
8282
}

frontend/src/views/system/authentication/OidcEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const state = reactive({
2828
const validateUrl = (rule, value, callback) => {
2929
const reg = new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/)
3030
if (!reg.test(value)) {
31-
callback(new Error(t('system.incorrect_please_re_enter')))
31+
callback(new Error(t('authentication.incorrect_please_re_enter')))
3232
} else {
3333
callback()
3434
}

0 commit comments

Comments
 (0)