diff options
author | jloup <jeanloup.jamet@gmail.com> | 2018-05-04 11:55:15 +0200 |
---|---|---|
committer | jloup <jeanloup.jamet@gmail.com> | 2018-05-04 11:55:15 +0200 |
commit | 85545aba62546f219a9c9730945511412a3174ef (patch) | |
tree | 7bf7feb99c6e7e51e83c386aafb3da3b7610d6bd /cmd/web/js/api.js | |
parent | b94f3416c1afe6363249b46bf2b299dfe8e4007f (diff) | |
download | Front-85545aba62546f219a9c9730945511412a3174ef.tar.gz Front-85545aba62546f219a9c9730945511412a3174ef.tar.zst Front-85545aba62546f219a9c9730945511412a3174ef.zip |
Password reset.
Diffstat (limited to 'cmd/web/js/api.js')
-rw-r--r-- | cmd/web/js/api.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cmd/web/js/api.js b/cmd/web/js/api.js index 5cbf5eb..c9b4ef5 100644 --- a/cmd/web/js/api.js +++ b/cmd/web/js/api.js | |||
@@ -43,6 +43,27 @@ var ApiEndpoints = { | |||
43 | return '/signin'; | 43 | return '/signin'; |
44 | } | 44 | } |
45 | }, | 45 | }, |
46 | 'RESET_PASSWORD': { | ||
47 | 'type': 'POST', | ||
48 | 'auth': false, | ||
49 | 'parameters': [ | ||
50 | {'name': 'email', 'mandatory': true, 'inquery': true}, | ||
51 | ], | ||
52 | 'buildUrl': function() { | ||
53 | return '/passwordreset'; | ||
54 | } | ||
55 | }, | ||
56 | 'CHANGE_PASSWORD': { | ||
57 | 'type': 'POST', | ||
58 | 'auth': false, | ||
59 | 'parameters': [ | ||
60 | {'name': 'token', 'mandatory': true, 'inquery': true}, | ||
61 | {'name': 'password', 'mandatory': true, 'inquery': true}, | ||
62 | ], | ||
63 | 'buildUrl': function() { | ||
64 | return '/changepassword'; | ||
65 | } | ||
66 | }, | ||
46 | 'MARKET': { | 67 | 'MARKET': { |
47 | 'type': 'GET', | 68 | 'type': 'GET', |
48 | 'auth': true, | 69 | 'auth': true, |