Skip to content

Commit

Permalink
Update SignIn.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Oct 25, 2023
1 parent 66889f2 commit 562acab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/SignIn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,13 @@ const errorSummary = computed(() => {
async function submit() {
modelValue.value.provider = authProvider.value.name
if (authProvider.value.name === 'authsecret') {
serviceClient.headers.set("authsecret",modelValue.value.authsecret)
serviceClient.headers.set("authsecret", modelValue.value.authsecret)
modelValue.value = createDto("Authenticate")
} else if (authProvider.value.name === 'basic') {
serviceClient.setCredentials(modelValue.value.UserName, modelValue.value.Password)
modelValue.value = createDto("Authenticate")
modelValue.value.UserName = null
modelValue.value.Password = null
}
api.value = await client.api(modelValue.value)
if (api.value.succeeded) {
Expand Down

0 comments on commit 562acab

Please sign in to comment.