authentasaurus 0.6.18 → 0.6.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ module ActiveRecord::Authenticatable
14
14
  # basic attributes
15
15
  validates_presence_of :username, :hashed_password, :password_seed, :email, :name
16
16
  validates_uniqueness_of :username, :email
17
- validates_format_of :username, :with => /^[a-z0-9]*([a-z0-9]{4})+[a-z0-9]*$/ # alpha-numeric only and at least 4 characters
17
+ validates_format_of :username, :with => /^[a-z0-9]*([a-z0-9_-]{4})+[a-z0-9_-]*[a-z0-9]*$/ # alpha-numeric only and at least 4 characters
18
18
  validates_format_of :email, :with => %r{[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}}
19
19
  # password validations
20
20
  validates_confirmation_of :password, :on => :create, :if => Proc.new {|user| user.hashed_password.nil? || user.password_seed.nil? }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentasaurus
3
3
  version: !ruby/object:Gem::Version
4
- hash: 35
4
+ hash: 33
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 18
10
- version: 0.6.18
9
+ - 19
10
+ version: 0.6.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Omar Mekky
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2010-09-28 00:00:00 +03:00
21
+ date: 2010-09-30 00:00:00 +03:00
22
22
  default_executable:
23
23
  dependencies: []
24
24