This commit is contained in:
Zachary Carter 2013-02-22 15:41:48 -08:00
Родитель 88b1a16f83
Коммит f1387f6748
3 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -1,4 +1,4 @@
var Hapi = require('Hapi');
var Hapi = require('hapi');
var verify = require('picl-server/lib/verify.js');
var config = require('./config.js');
var users = require('./users.js');

Просмотреть файл

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const Hapi = require('Hapi');
const Hapi = require('hapi');
const users = require('../lib/users.js');
const prereqs = require('../lib/prereqs.js');
@ -26,7 +26,6 @@ exports.routes = [
},
response: {
schema: {
success: Bool().required(),
kA: Str().required(),
deviceId: Str().required(),
version: Num().integer().required()
@ -44,7 +43,6 @@ function create(request) {
if (err) return request.reply(err);
request.reply.payload({
success: true,
kA: user.kA,
deviceId: deviceId,
version: user.kA_version

Просмотреть файл

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const Hapi = require('Hapi');
const Hapi = require('hapi');
const users = require('../lib/users.js');
const prereqs = require('../lib/prereqs.js');
@ -21,7 +21,6 @@ var getConfig = {
},
response: {
schema: {
success: Bool().required(),
kA: Str().required(),
version: Num().integer().required()
}
@ -91,7 +90,7 @@ function create(request) {
users.create(request.pre.email, function(err, result) {
if (err) return request.reply(err);
request.reply({
request.reply.payload({
kA: result.kA,
deviceId: result.deviceId,
version: result.version