Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Fix: Copy and paste PIN from email #15

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions resources/views/pin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down