diff options
author | azul <azul@riseup.net> | 2013-07-11 00:37:45 -0700 |
---|---|---|
committer | azul <azul@riseup.net> | 2013-07-11 00:37:45 -0700 |
commit | 02b69c78eed7682c24cb8361da094bdac45a7749 (patch) | |
tree | a45ed7076a96ddb1601cf9a2e44ae37160f90319 /users/app/models | |
parent | 3113f8b814417a896ad5340fda88927733f8ab22 (diff) | |
parent | a40a83cb07d9aba8915cd2c4a25aa76e0cf6760e (diff) |
Merge pull request #56 from leapcode/feature/disable_account
Feature/disable account
Diffstat (limited to 'users/app/models')
-rw-r--r-- | users/app/models/user.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/users/app/models/user.rb b/users/app/models/user.rb index 3459520..413b4ac 100644 --- a/users/app/models/user.rb +++ b/users/app/models/user.rb @@ -11,6 +11,8 @@ class User < CouchRest::Model::Base property :public_key, :accessible => true + property :enabled, TrueClass, :default => true + validates :login, :password_salt, :password_verifier, :presence => true |