|
|
|
|
@@ -61,11 +61,22 @@
|
|
|
|
|
|
|
|
|
|
<span id="phone-error-box" class="text-red-500 text-italic error-box"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<button type="submit" class="w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 inline-flex items-center justify-center h-9 px-3 mb-3 w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center">
|
|
|
|
|
<button type="button" class="w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 inline-flex items-center justify-center h-9 px-3 mb-3 w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center">
|
|
|
|
|
<span class=""><span>{{ __('module.base-auth::base.change_number') }}</span></span>
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="flex justify-center items-center mb-6">
|
|
|
|
|
<form id="resend-verification-form" action="{{ route('resend-verification') }}" method="POST">
|
|
|
|
|
@csrf
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<span id="resend-verification-trigger" class="text-center font-normal mr-4 underline cursor-pointer d-none" onclick="requestNewVerification()">
|
|
|
|
|
{{ __('module.base-auth::base.resend') }}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{{-- Verification form --}}
|
|
|
|
|
<form method="POST" action="{{ route('sms-verification') }}" id="verification-form">
|
|
|
|
|
@csrf
|
|
|
|
|
@@ -81,7 +92,8 @@
|
|
|
|
|
@endforeach
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
<button type="submit" class="w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 inline-flex items-center justify-center h-9 px-3 mb-3 w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center">
|
|
|
|
|
|
|
|
|
|
<button type="submit" class="w-full justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 inline-flex items-center h-9 px-3 mb-3 bg-primary-500 hover:bg-primary-400">
|
|
|
|
|
<span class=""><span>{{ __('module.base-auth::base.submit') }}</span></span>
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
@@ -98,9 +110,15 @@ let changePhoneform = $_ID('change-phone-form')
|
|
|
|
|
let verificationForm = $_ID('verification-form')
|
|
|
|
|
let changePhoneButton = $_ID('change-phone-button')
|
|
|
|
|
let goBackButton = $_ID('go-back-button')
|
|
|
|
|
let resendVerificationTrigger = $_ID('resend-verification-trigger')
|
|
|
|
|
let resendVerificationForm = $_ID('resend-verification-form')
|
|
|
|
|
|
|
|
|
|
ready(() => {
|
|
|
|
|
new Inputmask("+(\\9\\93)-99-99-99-99").mask(phoneField);
|
|
|
|
|
new Inputmask("+(\\9\\93)-99-99-99-99").mask(phoneField)
|
|
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
show(resendVerificationTrigger)
|
|
|
|
|
}, 5000)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
async function goBack() {
|
|
|
|
|
@@ -125,7 +143,7 @@ async function changePhone(event) {
|
|
|
|
|
if (response.errors) {
|
|
|
|
|
loopObject(response.errors, item => addValidationClasses(item))
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
removeValidationClasess()
|
|
|
|
|
@@ -138,7 +156,11 @@ async function changePhone(event) {
|
|
|
|
|
showCancelButton: false,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
window.location.href = response.url;
|
|
|
|
|
window.location.href = response.url
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function requestNewVerification() {
|
|
|
|
|
resendVerificationForm.submit()
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
|