API: Implement creation and revocation of app passwords #808 #4114

Note that these changes are not production ready yet and must be tested
well before releasing them.

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-04-07 16:44:30 +02:00
parent 6b0abfded1
commit 33fac8f404
46 changed files with 529 additions and 264 deletions

View File

@@ -60,7 +60,7 @@ func ChangeFileOrientation(router *gin.RouterGroup) {
return
}
// Update form with values from request
// Assign and validate request form values.
if err = c.BindJSON(&f); err != nil {
Abort(c, http.StatusBadRequest, i18n.ErrBadRequest)
return