Not sure if it’s expected, but I ran into this:
# docker container exec -it vikunja-api-1 /app/vikunja/vikunja user reset-password 4 -d -p 'somethingreallysimple'
2024/01/27 00:45:55 No config file found, using default or config from environment variables.
2024-01-27T00:45:55.773617244Z: INFO ▶ migration/Migrate 052 Ran all migrations successfully.
panic: reflect: call of reflect.Value.Len on interface Value
goroutine 1 [running]:
reflect.Value.lenNonSlice({0x14c3a40?, 0xc000530100?, 0xc0005221e0?})
/usr/local/go/src/reflect/value.go:1714 +0x165
reflect.Value.Len(...)
/usr/local/go/src/reflect/value.go:1693
xorm.io/xorm/internal/statements.(*Statement).BuildUpdates(0xc00002e240, {0x1650060, 0xc000530000, 0x199}, 0x50?, 0xf5?, 0x39?, 0x0?, 0xc0?)
/go/pkg/mod/xorm.io/xorm@v1.3.2/internal/statements/update.go:264 +0xf67
xorm.io/xorm.(*Session).Update(0xc0000da1a0, {0x15c3bc0, 0xc000530000}, {0x0, 0x0, 0x0?})
/go/pkg/mod/xorm.io/xorm@v1.3.2/session_update.go:191 +0x59f
code.vikunja.io/api/pkg/user.UpdateUserPassword(0xc0000da1a0, 0xc0001c9a20, {0x7fffc0c98c7d, 0x15})
/go/src/code.vikunja.io/api/pkg/user/user.go:552 +0x119
code.vikunja.io/api/pkg/cmd.glob..func18(0x2557a40?, {0xc0002a2c40, 0x1, 0x4?})
/go/src/code.vikunja.io/api/pkg/cmd/user.go:257 +0xe5
github.com/spf13/cobra.(*Command).execute(0x2557a40, {0xc0002a2c00, 0x4, 0x4})
/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:944 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0x25588a0)
/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
code.vikunja.io/api/pkg/cmd.Execute()
/go/src/code.vikunja.io/api/pkg/cmd/cmd.go:44 +0x25
main.main()
/go/src/code.vikunja.io/api/main.go:22 +0x17
Additionally I observe that using the CLI to send the password reset flops
# docker container exec -it vikunja-api-1 /app/vikunja/vikunja user reset-password 4
2024/01/27 00:52:15 No config file found, using default or config from environment variables.
2024-01-27T00:52:15.60977374Z: INFO ▶ migration/Migrate 052 Ran all migrations successfully.
Password reset email sent successfully.
However when sent from the login page, the email does arrive. Test emails also arrive with no issue.
Is this a known issue? Need me to provide more info? This is on version 0.21.0