Skip to content

Commit e423216

Browse files
committed
feat: update login settings API call to use structured parameters
1 parent 5bea2b2 commit e423216

File tree

1 file changed

+5
-2
lines changed
  • ui/src/views/system-setting/authentication/component

1 file changed

+5
-2
lines changed

ui/src/views/system-setting/authentication/component/Setting.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@ const form = ref<any>({
9090
9191
const submit = async (formEl: FormInstance | undefined) => {
9292
if (!formEl) return;
93-
console.log(form)
9493
await formEl.validate((valid, fields) => {
9594
if (valid) {
96-
authApi.putLoginSetting(form.value, loading).then((res) => {
95+
const params = {
96+
default_value: form.value.default_value,
97+
max_attempts: form.value.max_attempts,
98+
};
99+
authApi.putLoginSetting(params, loading).then((res) => {
97100
MsgSuccess(t('common.saveSuccess'))
98101
})
99102
} else {

0 commit comments

Comments
 (0)