summaryrefslogtreecommitdiff
path: root/internal/api/client/user
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/user')
-rw-r--r--internal/api/client/user/passwordchange.go50
-rw-r--r--internal/api/client/user/user_test.go2
2 files changed, 27 insertions, 25 deletions
diff --git a/internal/api/client/user/passwordchange.go b/internal/api/client/user/passwordchange.go
index 2b40a345e..a900af897 100644
--- a/internal/api/client/user/passwordchange.go
+++ b/internal/api/client/user/passwordchange.go
@@ -36,35 +36,35 @@ import (
// The parameters can also be given in the body of the request, as JSON, if the content-type is set to 'application/json'.
// The parameters can also be given in the body of the request, as XML, if the content-type is set to 'application/xml'.
//
-// ---
-// tags:
-// - user
+// ---
+// tags:
+// - user
//
-// consumes:
-// - application/json
-// - application/xml
-// - application/x-www-form-urlencoded
+// consumes:
+// - application/json
+// - application/xml
+// - application/x-www-form-urlencoded
//
-// produces:
-// - application/json
+// produces:
+// - application/json
//
-// security:
-// - OAuth2 Bearer:
-// - write:user
+// security:
+// - OAuth2 Bearer:
+// - write:user
//
-// responses:
-// '200':
-// description: Change successful
-// '400':
-// description: bad request
-// '401':
-// description: unauthorized
-// '403':
-// description: forbidden
-// '406':
-// description: not acceptable
-// '500':
-// description: internal error
+// responses:
+// '200':
+// description: Change successful
+// '400':
+// description: bad request
+// '401':
+// description: unauthorized
+// '403':
+// description: forbidden
+// '406':
+// description: not acceptable
+// '500':
+// description: internal error
func (m *Module) PasswordChangePOSTHandler(c *gin.Context) {
authed, err := oauth.Authed(c, true, true, true, true)
if err != nil {
diff --git a/internal/api/client/user/user_test.go b/internal/api/client/user/user_test.go
index 116f3711b..18986c98d 100644
--- a/internal/api/client/user/user_test.go
+++ b/internal/api/client/user/user_test.go
@@ -76,6 +76,8 @@ func (suite *UserStandardTestSuite) SetupTest() {
suite.userModule = user.New(suite.processor).(*user.Module)
testrig.StandardDBSetup(suite.db, suite.testAccounts)
testrig.StandardStorageSetup(suite.storage, "../../../../testrig/media")
+
+ suite.NoError(suite.processor.Start())
}
func (suite *UserStandardTestSuite) TearDownTest() {