mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
feat: validate host, port and nickname fields
This commit is contained in:
@@ -61,15 +61,18 @@ func NewLogin() State {
|
||||
t.Focus()
|
||||
t.CharLimit = 40
|
||||
t.TextStyle = FocusedStyle
|
||||
t.Validate = NoSpacesValidation
|
||||
case 1:
|
||||
t.Placeholder = "Port"
|
||||
t.CharLimit = 5
|
||||
t.Validate = ValidatePort
|
||||
case 2:
|
||||
t.Placeholder = "Channel"
|
||||
t.CharLimit = 32
|
||||
case 3:
|
||||
t.Placeholder = "Nickname"
|
||||
t.CharLimit = 32
|
||||
t.Validate = NoSpacesValidation
|
||||
case 4:
|
||||
t.Placeholder = "Password"
|
||||
t.CharLimit = 64
|
||||
|
||||
Reference in New Issue
Block a user