Sha256: ce9122f804be461952913be937b99f208b4cb725c91bb69a993e24647387bdaa

Contents?: true

Size: 445 Bytes

Versions: 9

Compression:

Stored size: 445 Bytes

Contents

# Password

#### Rules

```ruby
# 1. Pattern
:strong => /\A(?=.{4,255})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[[:^alnum:]])/x
:weak   => /^[A-Za-z0-9.,<>:;!@#$%^&*?_~-]{1,255}$/
```

#### Options

Option | Type | Available | Default
--- | --- | --- | ---
strength | symbol | strong, weak | weak

#### Usage

```ruby
class User < ActiveRecord::Base

  validates :input_0, password: true
  validates :input_1, password: { strength: :strong }

end
```

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lite-validators-1.1.0 docs/PASSWORD.md
lite-validators-1.0.7 docs/PASSWORD.md
lite-validators-1.0.6 docs/PASSWORD.md
lite-validators-1.0.5 docs/PASSWORD.md
lite-validators-1.0.4 docs/PASSWORD.md
lite-validators-1.0.3 docs/PASSWORD.md
lite-validators-1.0.2 docs/PASSWORD.md
lite-validators-1.0.1 docs/PASSWORD.md
lite-validators-1.0.0 docs/PASSWORD.md