Skip to content

Commit fc3d67c

Browse files
committed
feat: make otp numeric only
Signed-off-by: romanetar <roman_ag@hotmail.com>
1 parent f13ba45 commit fc3d67c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/Models/OAuth2/OAuth2OTP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ public function getType(): string
412412
return "otp";
413413
}
414414

415-
const VsChar = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
415+
const VsChar = "0123456789";
416416

417417
public function generateValue(): string
418418
{

resources/js/login/login.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ const OTPInputForm = ({
226226
value={otpCode}
227227
onChange={onCodeChange}
228228
numInputs={otpLength}
229+
inputType="tel"
229230
renderInput={(props) => <input {...props} />}
230231
shouldAutoFocus={true}
231232
hasErrored={!otpError}

0 commit comments

Comments
 (0)