summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-10-31 10:40:03 +0100
committerAzul <azul@leap.se>2012-10-31 10:41:22 +0100
commitb7cf67590042eca10381a95f8b74070d7430dbdb (patch)
treee2447a750956036c564a9fcd65134d3a234e7d06 /users
parent428aea3c577c44a3bb13cced23c5c0cafc5b4d93 (diff)
user creation should send ok flag so js can start login
Diffstat (limited to 'users')
-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 8b7c0b3..b57af98 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)