49 Commits

Author SHA1 Message Date
Yang Luo
32fbb5b534 Support custom provider for storage API 2023-07-30 23:19:45 +08:00
Yang Luo
463bacd53b Add GetDirectResources() 2023-07-30 22:01:10 +08:00
Trần Thanh Tịnh
cd7589775c
feat: replace all panic by response err (#1993)
* fix: missing return after response error

* feat: handle error in frontend

* feat: disable loading and catch org edit error

* chore: i18 for error message

* chore: remove break line

* feat: application catching error
2023-06-27 21:33:47 +08:00
StevenLei
926e73ed1b
fix: fix "Accept-Language" parsing in request (#1996) 2023-06-20 17:43:48 +08:00
Yang Luo
e0d2bc3dc9 Return error in GetProviderFromContext() 2023-06-10 15:51:26 +08:00
yehong
02e692a300
feat: return most backend API errors to frontend (#1836)
* feat: return most backend API errros to frontend

Signed-off-by: yehong <239859435@qq.com>

* refactor: reduce int type change

Signed-off-by: yehong <239859435@qq.com>

* feat: return err backend in token.go

Signed-off-by: yehong <239859435@qq.com>

---------

Signed-off-by: yehong <239859435@qq.com>
2023-05-30 15:49:39 +08:00
Yang Luo
de73ff0e60 Add IsMaskedEnabled to provider API 2023-05-19 13:09:53 +08:00
Yaodong Yu
65dcbd2236
feat: compatible different uid of LDAP server (#1860)
* feat: compatible different uid of LDAP server

* Update organization.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-19 02:34:25 +08:00
Yang Luo
2cd6f9df8e Add /api/get-message-answer API 2023-05-01 23:15:51 +08:00
Gucheng Wang
ef3d323f63 Improve SMS code 2023-03-03 22:44:22 +08:00
wht
aad9201b24
feat: add SMS test feature (#1606)
* feat: add SMS test

* fix: Add missing translation

* fix: Delete redundant information

* fix: remove unnecessary field

* Update sms.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-03-03 22:15:02 +08:00
Yang Luo
842d4865b2 Fix router error message's i18n 2023-02-18 16:11:23 +08:00
Gucheng Wang
a6e9084973 Remove duplicated i18n words 2023-01-06 20:12:32 +08:00
Yaodong Yu
a51f0d7c08
feat: init score in organization (#1388)
* feat: init score in organization

* Update OrganizationEditPage.js

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2022-12-10 22:27:12 +08:00
Yaodong Yu
b41d8652f0
feat: fix showing wrong error messages (#1385) 2022-12-09 15:11:13 +08:00
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
WangGuan
7867060b71
feat: add quota limitation to organizations, users, providers and applications (#1339) 2022-11-29 11:01:41 +08:00
Yaodong Yu
b337b908ea
feat: fix the bug that admin cannot upload avatar for other users (#1323) 2022-11-25 09:36:47 +08:00
Mr Forest
ba9d1e2388
fix: fix bug in GetAcceptLanguage() (#1322) 2022-11-24 20:43:35 +08:00
xAmast
25ee4226d3
feat: clear the session of a signin but non-existent user (#1246) 2022-10-29 20:18:02 +08:00
Yaodong Yu
80bf29d79a
feat: fix showing wrong error message: "Please sign in first" (#1245) 2022-10-27 23:50:45 +08:00
Mr Forest
d4b587b93e
feat: fix bug in GetAcceptLanguage() (#1237)
Co-authored-by: Gucheng Wang <nomeguy@qq.com>
2022-10-25 10:50:10 +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
084a5c3e6b Show logs to org admin 2022-09-18 16:16:45 +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
Mikey
79119760f2
style: golint (#988) 2022-08-09 16:50:49 +08:00
aecra
f0431701c9
fix: fix OAuth error response (#835)
* fix: fix OAuth error response

* fix: provide more detailed error messages for TokenError
2022-07-01 14:53:34 +08:00
Товарищ программист
5f8924ed4e
feat: support overriding configuration with env (#590) 2022-03-20 23:21:09 +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
Yang Luo
88aa444ad1 Improve SendEmail() and SendSms() APIs. 2021-09-05 10:30:51 +08:00
Yang Luo
1c5ce46bd5 Refactor GetProviderFromContext(). 2021-09-05 09:44:15 +08:00
Yang Luo
b3eec024b8 Add getInitScore(). 2021-08-30 01:06:05 +08:00
Yang Luo
4ca307564c Add proxy pkg. 2021-08-21 22:16:25 +08:00
sh1luo
718fc4df74 fix: improve goland experience (#238)
Signed-off-by: sh1luo <690898835@qq.com>
2021-08-14 14:22:18 +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
Yang Luo
1a2d85102c Support defaultHttpClient. 2021-08-01 17:36:03 +08:00
Kininaru
7a2230f63e
feat: expose email and sms APIs as services to SDK (#202)
Signed-off-by: Kininaru <shiftregister233@outlook.com>

invalid receivers
2021-07-30 14:15:10 +08:00
Kininaru
d83b86df37 refactor: SessionUser -> SessionUsername
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-07-19 10:14:14 +08:00
WindSpiritSR
1bca883f4f fix: Move proxy address config to app.conf
Signed-off-by: WindSpiritSR <simon343riley@gmail.com>
2021-07-04 15:48:29 +08:00
Yang Luo
b11b3b6021 Use signup table in Signup API. 2021-06-17 00:49:02 +08:00
Yang Luo
947d132362 Refactor out c.RequireSignedIn() 2021-05-17 23:25:28 +08:00
Kininaru
33e61cc5cf feat: set password for users
Signed-off-by: Kininaru <shiftregister233@outlook.com>

removed useless blank

Signed-off-by: Kininaru <shiftregister233@outlook.com>

add license header

Signed-off-by: Kininaru <shiftregister233@outlook.com>

i18n

Signed-off-by: Kininaru <shiftregister233@outlook.com>

database logic

Signed-off-by: Kininaru <shiftregister233@outlook.com>

i18n

Signed-off-by: Kininaru <shiftregister233@outlook.com>

i18n

Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-09 20:56:52 +08:00
Yang Luo
5a3abdbc95 Rename to authState, useProxy, delete EnableDocs. 2021-05-09 12:02:20 +08:00
Yang Luo
15f9d71127 Add UseProxy config. 2021-02-14 17:24:05 +08:00
Yang Luo
c81118feff Add github oauth. 2021-02-14 00:22:24 +08:00