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