pyc-website
main website for pyc inc.
git clone https://9o.is/git/pyc-website.git
commit 1161934676664959a1b028e7e1a4c0bc16bbdff9 parent 6f99d6a9bc0ef2dbd17b2d224937927672ac5168 Author: Jul <jul@9o.is> Date: Mon, 1 Sep 2014 13:16:57 -0400 Chimera can log in a user with phone number Diffstat:
| M | src/main/scala/inc/pyc/rest/AtmRest.scala | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/main/scala/inc/pyc/rest/AtmRest.scala b/src/main/scala/inc/pyc/rest/AtmRest.scala @@ -34,6 +34,10 @@ object AtmRest extends RestHelper { authenticate(id, pw, User findByAddress (bitcoinAddress) map sendUserInfo openOr failure("User not found")) + // /api/atm/{atm_id}/{atm_password}/phone/{phone_number}/login + case id :: pw :: "phone" :: phoneNumber :: "login" :: Nil JsonGet _ => + authenticate(id, pw, User findByPhone (phoneNumber) map sendUserInfo openOr failure("User not found")) + }) def authenticate(id: String, passwd: String, f: JValue) =