summaryrefslogtreecommitdiff
path: root/users/app/models
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-10-31 11:14:38 -0700
committerjessib <jessib@riseup.net>2012-10-31 11:14:38 -0700
commitfa6c453603d2754644f80efc6e8a0f6e792cc9bd (patch)
tree4ec755dc917fea9eba4c94d988a0aae25eca6790 /users/app/models
parenta2a8caf577415ef51c0f99da43f9b47bde226fc6 (diff)
parentfc625a54eb5c54cecb5331811ff482df12b7c059 (diff)
Merge branch 'develop' into feature-admin_users
Conflicts: users/app/controllers/application_controller.rb users/app/models/user.rb
Diffstat (limited to 'users/app/models')
-rw-r--r--users/app/models/user.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/users/app/models/user.rb b/users/app/models/user.rb
index 9bbf169..2b8ead7 100644
--- a/users/app/models/user.rb
+++ b/users/app/models/user.rb
@@ -44,7 +44,10 @@ class User < CouchRest::Model::Base
end
def to_json(options={})
- super(options.merge(:only => ['login', 'password_salt']))
+ {
+ :login => login,
+ :ok => valid?
+ }.to_json(options)
end
def initialize_auth(aa)