summaryrefslogtreecommitdiff
path: root/users/app/models
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-11 10:23:51 +0100
committerAzul <azul@leap.se>2013-01-11 10:23:51 +0100
commit1623f51cc003f7de92f7192bba5ca88dfb2a92f6 (patch)
tree036bc8e0f08ae146b81c00f6f15922dea4679d37 /users/app/models
parentcee6db281349789ba5ff6dc8d3dc6ca10400aebe (diff)
basic dummy data for users
Diffstat (limited to 'users/app/models')
-rw-r--r--users/app/models/user.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/users/app/models/user.rb b/users/app/models/user.rb
index 1798ea4..8474d16 100644
--- a/users/app/models/user.rb
+++ b/users/app/models/user.rb
@@ -18,8 +18,8 @@ class User < CouchRest::Model::Base
:if => :serverside?
validates :login,
- :format => { :with => /\A[A-Za-z\d_]+\z/,
- :message => "Only letters, digits and _ allowed" }
+ :format => { :with => /\A[A-Za-z\d_\.]+\z/,
+ :message => "Only letters, digits, . and _ allowed" }
validates :password_salt, :password_verifier,
:format => { :with => /\A[\dA-Fa-f]+\z/, :message => "Only hex numbers allowed" }
@@ -57,7 +57,7 @@ class User < CouchRest::Model::Base
# valid set of attributes for testing
def valid_attributes_hash
- { :login => "me",
+ { :login => Faker::Name.first_name.downcase,
:password_verifier => "1234ABCD",
:password_salt => "4321AB" }
end