only accept either an email or an assertion

This commit is contained in:
Zachary Carter 2013-03-07 15:24:07 -08:00
Родитель a0cd7db37a
Коммит 64e1a6e169
2 изменённых файлов: 8 добавлений и 8 удалений

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

@ -21,8 +21,8 @@ exports.routes = [
pre: [ prereqs.assertion, prereqs.userId, prereqs.user ],
validate: {
schema: {
assertion: Str(),
email: Str()
assertion: Str().without('email'),
email: Str().without('assertion')
}
},
response: {

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

@ -16,8 +16,8 @@ var getConfig = {
pre: [ prereqs.assertionGet, prereqs.userId, prereqs.user ],
validate: {
query: {
assertion: Str(),
email: Str()
assertion: Str().without('email'),
email: Str().without('assertion')
}
},
response: {
@ -38,8 +38,8 @@ exports.routes = [
pre: [ prereqs.assertion ],
validate: {
schema: {
assertion: Str(),
email: Str()
assertion: Str().without('email'),
email: Str().without('assertion')
}
},
response: {
@ -72,8 +72,8 @@ exports.routes = [
pre: [ prereqs.assertion, prereqs.userId ],
validate: {
schema: {
assertion: Str(),
email: Str()
assertion: Str().without('email'),
email: Str().without('assertion')
}
},
response: {