backup/restore: User.Passwd renamed to .Password between v0.12 and v0.13 - restore fails to restore passwords
vallon opened this issue · 1 comments
vallon commented
Gogs version
v0.12 vs v0.13
Git version
- Server: n/a
- Client: n/a
Operating system
n/a
Database
n/a
Describe the bug
In commit 7cbd84d #7196, the field "Passwd" of User was renamed to "Password". In a v0.12 database dump, the gogs-backup/db/User.json uses "Passwd", but in v0.13, it appears as "Password".
When trying to import a v0.12.* (or earlier) dump in v0.13, the Passwd field is dropped, and all Password data is blank.
To reproduce
Try to load a v0.12 backup into v0.13. "select id, passwd from user" shows all password fields are blank.
Expected behavior
Passwords should be restored.
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct