zeripath 9a0cd3af3b
Handle misencoding of login_source cfg in mssql (#16268)
* Handle misencoding of login_source cfg in mssql

Unfortunately due a bug in xorm (see https://gitea.com/xorm/xorm/pulls/1957) updating
loginsources on MSSQL causes them to become corrupted. (#16252)

Whilst waiting for the referenced PR to be merged and to handle the corrupted
loginsources correctly we need to add a wrapper to the `FromDB()` methods to look
for and ignore the misplaced BOMs that have been added.

Fix #16252

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

* Update models/login_source.go
2021-06-27 16:21:16 -04:00
..
2021-05-16 19:58:26 +08:00
2020-06-15 16:46:01 -04:00
2017-05-04 13:54:56 +08:00
2021-06-25 16:28:55 +02:00
2021-04-05 08:41:22 +01:00
2020-04-05 07:20:50 +01:00
2021-06-25 16:28:55 +02:00
2021-06-17 23:56:46 +02:00
2021-06-25 16:28:55 +02:00
2021-04-19 18:25:08 -04:00
2021-06-07 07:27:09 +02:00
2021-05-01 22:51:03 -04:00
2020-04-05 07:20:50 +01:00
2020-08-16 23:07:38 -04:00
2020-03-02 00:05:44 +02:00
2020-04-05 07:20:50 +01:00
2021-06-25 12:59:25 -04:00