diff options
author | Azul <azul@leap.se> | 2012-10-31 10:40:03 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-10-31 10:41:22 +0100 |
commit | b7cf67590042eca10381a95f8b74070d7430dbdb (patch) | |
tree | e2447a750956036c564a9fcd65134d3a234e7d06 | |
parent | 428aea3c577c44a3bb13cced23c5c0cafc5b4d93 (diff) |
user creation should send ok flag so js can start login
-rw-r--r-- | users/app/models/user.rb | 5 |
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) |