Skip to content

Commit

Permalink
fix for 'confirm code' button not working on registration screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondicker committed Dec 12, 2024
1 parent ce751a7 commit 8a8f337
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 1 deletion.
Binary file modified src/keycloak/providers/jars/keycloak-phone-provider.jar
Binary file not shown.
Binary file modified src/keycloak/providers/jars/keycloak-phone-provider.resources.jar
Binary file not shown.
Binary file modified src/keycloak/providers/jars/keycloak-sms-provider-dummy.jar
Binary file not shown.
Binary file modified src/keycloak/providers/jars/keycloak-sms-provider-twilio.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script src="${url.resourcesPath}/js/intlTelInputDirective.js"></script>

<div id="vue-app">
<form id="kc-register-form" class="${properties.kcFormClass!}" action="${url.registrationAction}" method="post" @submit="onSubmit">
<form ref="form" @submit.prevent="confirmCode" id="kc-register-form" class="${properties.kcFormClass!}" action="${url.registrationAction}" method="post" @submit="onSubmit">

<input type="hidden" id="phoneNumberAsUsername" name="phoneNumberAsUsername" v-model="phoneNumberAsUsername">
<input type="hidden" id="isCodeSent" name="isCodeSent" v-model="isCodeSent">
Expand Down Expand Up @@ -358,6 +358,9 @@
confirmCode(){
// auto check terms and conditions when verify code (prevent validation error)
this.terms_and_conditions = "Yes";
// submit the form
this.$refs.form.submit();
},
onSubmit(event) {
this.isSubmitAttempted = true;
Expand Down

0 comments on commit 8a8f337

Please sign in to comment.