1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-11 02:04:27 +00:00
zeripath 0a9a484e1e
Create DB session provider(based on xorm) (#13031)
* Create Xorm session provider

This PR creates a Xorm session provider which creates
the appropriate Session table for macaron/session.

Fix #7137

Signed-off-by: Andrew Thornton <art27@cantab.net>

* extraneous l

Signed-off-by: Andrew Thornton <art27@cantab.net>

* fix lint

Signed-off-by: Andrew Thornton <art27@cantab.net>

* use key instead of ID to be compatible with go-macaron/session

Signed-off-by: Andrew Thornton <art27@cantab.net>

* And change the migration too.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update spacing of imports

Co-authored-by: 6543 <6543@obermui.de>

* Update modules/session/xorm.go

Co-authored-by: techknowlogick <matti@mdranta.net>

* add xorm provider to the virtual provider

Signed-off-by: Andrew Thornton <art27@cantab.net>

* prep for master merge

* prep for merge master

* As per @lunny

* move migration out of the way

* Move to call this db session as per @lunny

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-02-15 00:33:31 -05:00
..
2021-01-28 19:08:11 +01:00
2020-04-05 07:20:50 +01:00
2021-01-06 09:38:00 +08:00
2020-10-02 23:37:53 -04:00
2019-06-12 15:41:28 -04:00
2021-01-26 16:36:53 +01:00
2018-11-04 22:20:00 -05:00
2019-06-12 15:41:28 -04:00
2020-10-26 12:42:27 -04:00
2021-02-03 22:36:38 +01:00
2020-10-02 23:37:53 -04:00
2020-10-25 17:19:06 +00:00
2021-02-14 00:07:17 +08:00
2021-02-05 22:41:45 +01:00
2020-04-05 07:20:50 +01:00
2021-01-26 16:36:53 +01:00