chore : add variable description to AllowedPINAttempts
This commit is contained in:
parent
c359d99075
commit
ed6651697a
@ -6,10 +6,13 @@ import (
|
|||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Define the regex pattern as a constant
|
|
||||||
const (
|
const (
|
||||||
pinPattern = `^\d{4}$`
|
// Define the regex pattern as a constant
|
||||||
|
pinPattern = `^\d{4}$`
|
||||||
|
|
||||||
|
//Allowed incorrect PIN attempts
|
||||||
AllowedPINAttempts = uint8(3)
|
AllowedPINAttempts = uint8(3)
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// checks whether the given input is a 4 digit number
|
// checks whether the given input is a 4 digit number
|
||||||
|
Loading…
Reference in New Issue
Block a user