Switch back to /api/authenticate
This commit is contained in:
parent
50721103d7
commit
cad0e005e4
12
src/site.rkt
12
src/site.rkt
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user