@@ -447,6 +447,70 @@ define({
447447 "url" : "https://api.mchacks.ca/api/account/:id"
448448 } ]
449449 } ,
450+ {
451+ "type" : "post" ,
452+ "url" : "/auth/password/change" ,
453+ "title" : "change password for logged in user" ,
454+ "name" : "changePassword" ,
455+ "group" : "Authentication" ,
456+ "version" : "0.0.8" ,
457+ "parameter" : {
458+ "fields" : {
459+ "Parameter" : [ {
460+ "group" : "Parameter" ,
461+ "type" : "String" ,
462+ "optional" : false ,
463+ "field" : "oldPassword" ,
464+ "description" : "<p>The current password of the user</p>"
465+ } ,
466+ {
467+ "group" : "Parameter" ,
468+ "type" : "String" ,
469+ "optional" : false ,
470+ "field" : "newPassword" ,
471+ "description" : "<p>The new password of the user</p>"
472+ }
473+ ]
474+ } ,
475+ "examples" : [ {
476+ "title" : "Request-Example:" ,
477+ "content" : "{ \n \"oldPassword\": \"password12345\",\n \"newPassword\": \"password123456\"\n}" ,
478+ "type" : "json"
479+ } ]
480+ } ,
481+ "success" : {
482+ "fields" : {
483+ "Success 200" : [ {
484+ "group" : "Success 200" ,
485+ "type" : "string" ,
486+ "optional" : false ,
487+ "field" : "message" ,
488+ "description" : "<p>Success message</p>"
489+ } ,
490+ {
491+ "group" : "Success 200" ,
492+ "type" : "object" ,
493+ "optional" : false ,
494+ "field" : "data" ,
495+ "description" : "<p>empty</p>"
496+ }
497+ ]
498+ } ,
499+ "examples" : [ {
500+ "title" : "Success-Response: " ,
501+ "content" : "{\"message\": \"Successfully reset password\", \"data\": {}}" ,
502+ "type" : "json"
503+ } ]
504+ } ,
505+ "permission" : [ {
506+ "name" : ": Must be logged in"
507+ } ] ,
508+ "filename" : "routes/api/auth.js" ,
509+ "groupTitle" : "Authentication" ,
510+ "sampleRequest" : [ {
511+ "url" : "https://api.mchacks.ca/api/auth/password/change"
512+ } ]
513+ } ,
450514 {
451515 "type" : "post" ,
452516 "url" : "/auth/confirm/:token" ,
0 commit comments