Switch back to /api/authenticate

This commit is contained in:
Tony Garnock-Jones 2016-08-02 12:07:08 -04:00
parent 50721103d7
commit cad0e005e4

View File

@ -337,12 +337,12 @@
,(form-group 4 5 (primary-button "Log in")))))))) ,(form-group 4 5 (primary-button "Log in"))))))))
(define (authenticate-with-server! email password code) (define (authenticate-with-server! email password code)
(jsonp-rpc! #:sensitive? #t (simple-json-rpc! #:sensitive? #t
#:include-credentials? #f #:include-credentials? #f
"/jsonp/authenticate" "/api/authenticate"
`((email . ,email) (hash 'email email
(passwd . ,password) 'passwd password
(code . ,code)))) 'code code)))
(define (authentication-success->curator? success) (define (authentication-success->curator? success)
(match success (match success