diff --git a/resources/views/pin.blade.php b/resources/views/pin.blade.php index 48c2ce8..f3aadc8 100644 --- a/resources/views/pin.blade.php +++ b/resources/views/pin.blade.php @@ -125,6 +125,8 @@ class="bg-transparent cursor-pointer text-light dark:text-gray-200 hover:underli let paste = (event.clipboardData || window.clipboardData).getData('text'); + paste = paste.replace(/\s+/g, ''); + if (isNaN(parseInt(paste)) || paste.length !== pin_length) { return; }