Mr Forest
1bb3d2dea9
feat: refactor backend i18n ( #1373 )
...
* fix: handle the dataSourceName when DB changes
* reduce duplication of code
* feat: refactor translation error message
* feat: use json intsead of ini file
* remove useless translation
* fix translate problems
* remove useless addition
* fix pr problems
* fix pr problems
* fix split problem
* use gofumpt to fmt code
* use crowdin to execute backend translation
* fix pr problems
* refactor: change translation file structure same as frontend
* delete useless output
* update go.mod
2022-12-07 13:13:23 +08:00
Mr Forest
d86f3c88c7
feat: support i18n in backend err messages ( #1232 )
...
* feat: support i18n in backend err messages
* use gofumpt to fmt code
* fix review problems
* support auto generate err message
* delete beego/i18n moudle
* fix Github action test problems
* fix review problems
* use gofumpt to format code
* use gofumpt to fmt code
2022-10-23 15:16:24 +08:00
Gucheng Wang
e1331f314d
Add RequireSignedInUser()
2022-09-18 15:43:49 +08:00
疯魔慕薇
67a5adf585
feat: replace panic with details json error payload. ( #1039 )
...
Signed-off-by: 疯魔慕薇 <kfanjian@gmail.com>
Signed-off-by: 疯魔慕薇 <kfanjian@gmail.com>
2022-08-20 21:09:32 +08:00
q1anx1
9cb519d1e9
fix: Admins should not be allowed to add third-party login for their members ( #932 )
...
* feat: admin can unlink the other user
* feat: global admin can unlink other user
* fix
2022-07-30 23:11:02 +08:00
Gucheng Wang
db37f53d6c
Update license headers.
2022-02-13 23:39:27 +08:00
Gucheng Wang
c22ab44894
Update import path.
2022-01-20 14:11:46 +08:00
Товарищ программист
07fa438348
feat: update swagger api json with tags ( #347 )
...
Signed-off-by: Товарищ программист <2962928213@qq.com>
2021-12-03 20:42:36 +08:00
Yang Luo
1b74a58d06
Fix compile errors.
2021-08-14 14:20:13 +08:00
Yang Luo
9feefc31f9
Use c.ResponseOk() for all places.
2021-08-14 14:19:50 +08:00
Yang Luo
d16569d461
Use c.ResponseError() for all places.
2021-08-14 14:19:33 +08:00
sh1luo
8c66ef6860
fix: improve code specification ( #231 )
2021-08-14 14:18:08 +08:00
sh1luo
c632c3c307
fix: replace casdoor with casbin ( #194 )
...
Signed-off-by: sh1luo <690898835@qq.com>
2021-07-25 09:34:25 +08:00
Yang Luo
f672045b45
Allow to sign up with OAuth.
2021-06-09 21:28:33 +08:00
Yang Luo
11f1f8f440
Show properties in user page.
2021-05-30 18:35:05 +08:00
Yang Luo
947d132362
Refactor out c.RequireSignedIn()
2021-05-17 23:25:28 +08:00
Yang Luo
6774b0379c
Add Unlink API.
2021-04-18 23:14:46 +08:00