From cad0e005e4bd76d6e22f83a01b61efee1085bd94 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 2 Aug 2016 12:07:08 -0400 Subject: [PATCH] Switch back to /api/authenticate --- src/site.rkt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/site.rkt b/src/site.rkt index fae0478..835ec06 100644 --- a/src/site.rkt +++ b/src/site.rkt @@ -337,12 +337,12 @@ ,(form-group 4 5 (primary-button "Log in")))))))) (define (authenticate-with-server! email password code) - (jsonp-rpc! #:sensitive? #t - #:include-credentials? #f - "/jsonp/authenticate" - `((email . ,email) - (passwd . ,password) - (code . ,code)))) + (simple-json-rpc! #:sensitive? #t + #:include-credentials? #f + "/api/authenticate" + (hash 'email email + 'passwd password + 'code code))) (define (authentication-success->curator? success) (match success