894 Commits

Author SHA1 Message Date
Yaodong Yu
95f4f4cb6d
feat: refactor out form package and optimize verification code module (#1787)
* refactor: add forms package and optimize verification code module

* chore: add license

* chore: fix lint

* chore: fix lint

* chore: fix lint

* chore: swagger
2023-04-25 23:05:53 +08:00
OutOfEastGate
1003639e5b
feat: support for prometheus (#1784) 2023-04-25 16:06:09 +08:00
Yang Luo
06ebc04032 Can add/delete chat 2023-04-23 01:19:44 +08:00
OutOfEastGate
916a55b633
fix: fixed failed to update information when name duplicate (#1773)
* fix: fixed failed to update information when name duplicate

* fix: Use GetOwnerAndNameFromId and GetId functions instead of split

* Update organization.go

* Update role.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-04-22 21:15:06 +08:00
XDTD
6d6cbc7e6f
feat: add dynamic mode for provider to enable verification code when the login password is wrong (#1753)
* fix: update webAuthnBufferDecode to support Base64URL for WebAuthn updates

* feat: enable verification code when the login password is wrong

* fix: only enable captcha when login in password

* fix: disable login error limits when captcha on

* fix: pass "enableCaptcha" as an optional param

* fix: change enbleCapctah to optional bool param
2023-04-22 16:16:25 +08:00
Yang Luo
e75d26260a Fix table name in getEnforcer() 2023-04-20 01:33:47 +08:00
imp2002
96219442f5
feat: fix Tencent Cloud OSS storage connect incorrect issue (#1752)
* fix: fix Tencent Cloud OSS storage connect incorrect

* Update provider.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-04-18 21:30:46 +08:00
Yaodong Yu
903745c540
fix: improve LDAP page UI (#1749)
* refactor: improve LDAP sync page

* refactor: update anted version

* chore: i18
2023-04-17 22:03:05 +08:00
Yang Luo
df741805cd Fix chat send 2023-04-17 20:50:03 +08:00
OutOfEastGate
ee5c3f3f39
feat: fix display name null error during 3rd-party binding (#1747) 2023-04-17 15:39:33 +08:00
Yang Luo
714f69be7b Use HTTP for IP host in getOriginFromHost() 2023-04-17 00:55:40 +08:00
Yang Luo
78b62c28ab Fix the wrong order of g policy in enforce() API 2023-04-16 22:26:22 +08:00
Yang Luo
7edaeafea5 Call refreshAvatar() in addUser() 2023-04-16 01:00:02 +08:00
Yang Luo
336f3f7a7b Add user.refreshAvatar() 2023-04-16 01:00:02 +08:00
Yaodong Yu
47dc3715f9
feat: handle error when parsing samlResponse (#1744)
* fix: handle err from parse samlResponse

* fix: lint
2023-04-16 00:36:25 +08:00
Yang Luo
b89cf1de07 Add karma to account items 2023-04-15 16:05:33 +08:00
Yang Luo
be87078c25 Fix vi i18n 2023-04-15 14:16:49 +08:00
Yang Luo
754fa1e745 Add chat box 2023-04-15 10:54:55 +08:00
Yang Luo
8b9e0ba96b Add chat page 2023-04-15 10:54:55 +08:00
Yang Luo
b0656aca36 Add chat and message pages 2023-04-15 10:54:54 +08:00
Yaodong Yu
1b1de1dd01
feat: add LDAP custom filter support (#1719)
* refactor: improve ldap server code

* feat: custom filter

* fix: fix displayName mapping

* feat: add custom filter search fields

* chore: add license

* chore: i18n

* chore: i18n

* chore: update init field
2023-04-13 14:12:31 +08:00
Dzung Do
984a69cb4b
feat: fix wrong Vietnamese flag (#1724)
* fix wrong Vietnam country code

* fix wrong Vietnam country code

* fix wrong Vietnam country code

* fix wrong Vietnam country code
2023-04-10 22:42:12 +08:00
Wenpeng Chen
ad6f2ad2e1
feat: add wechatpay support. (#1710)
* feat: add wechatpay support.

* feat: add wechatpay support.

* Update wechatv3pay.go

* fix: update format.

* Update wechatv3pay.go

* Update wechatv3pay.go

* Update wechatv3pay.go

* fix: update file format.

* fix: improve the front of wechat payment.

* fix: change clientId2 to clientId.

* fix: fix the code format.

* fix: return backend error information to frontend.
2023-04-10 18:04:10 +08:00
Yang Luo
2d55252261 Add chat and message pages 2023-04-09 15:54:22 +08:00
Yaodong Yu
b7d78d1e27
fix: validate parameter and nil in func updateUser (#1714)
* fix: validate parameter and nil in func updateUser

* fix: delete blank line
2023-04-09 10:35:30 +08:00
Yaodong Yu
b99a0c3ca2
feat: optimize the "forget password" page (#1709) 2023-04-06 23:06:18 +08:00
Yaodong Yu
e1842f6b80
feat: fix LDAP server handle filter without CN field as * (#1705)
* fix: set ldap server default filter name as *

* fix: default use built-in organization to bind

* chore: use cache reduce the ci test time
2023-04-04 20:51:28 +08:00
Yang Luo
aaa56d3354 Add roles to SAML response 2023-03-30 14:43:34 +08:00
Gucheng Wang
5280f872dc Speed up GetOAuthToken() 2023-03-27 14:05:44 +08:00
hsluoyz
117ee509cf
feat: fix name format in application login: GetClientCredentialsToken() (#1639) 2023-03-25 23:02:08 +08:00
Yaodong Yu
c6146a9149
feat: fix bug that login by saml provider can not find application (#1676) 2023-03-23 21:38:33 +08:00
Gucheng Wang
c7b9a77b4a Remove Go i18n duplicates 2023-03-19 22:09:19 +08:00
June
4c4ad8320d
feat: optimize getEnforcer, only load filtered polices (#1669) 2023-03-19 20:13:48 +08:00
Gucheng Wang
98f962f818 Support i18n of id 2023-03-19 19:56:56 +08:00
Yaodong Yu
fd883a3211
feat: improve verification error translation (#1660) 2023-03-15 23:44:38 +08:00
Yaodong Yu
295a69c5f7
feat: support LDAP with SSL/TLS enabled (#1655) 2023-03-15 11:12:31 +08:00
Yaodong Yu
90f8eba02d
feat: can send Aliyun test SMS now (#1651) 2023-03-13 17:48:58 +08:00
Yaodong Yu
2cca1c9136
feat: refactor LDAP backend code and improve frontend operation (#1640)
* refactor: simplify ldap backend code and improve frontend operation

* chore: add skipCi tag in sync_test.go

* fix: ui
2023-03-12 11:12:51 +08:00
imp2002
ff4af6bb4e
feat: remove ID field in enforcement (#1623) 2023-03-07 16:04:07 +08:00
Gucheng Wang
5bdede5596 Use go-webauthn/webauthn 2023-03-07 13:49:04 +08:00
Yaodong Yu
e8a7b7ee9c
feat: support all captcha for login (#1619)
* refactor: captcha modal

* feat: support all captcha when login

* chore: improve i18 in loginPage.js
2023-03-05 20:31:46 +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
Gucheng Wang
46f090361e Improve init_data json 2023-03-03 21:32:06 +08:00
fengxsong
1ae6adff8e
fix(secure): remove user list from roles and permissions field to avoid leaking userlist (#1614)
* fix(secure): remove user list from roles and permissions field to avoid leaking userlist

Signed-off-by: fengxsong <fengxsong@outlook.com>

* Update permission.go

* Update role.go

---------

Signed-off-by: fengxsong <fengxsong@outlook.com>
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-03-03 18:18:41 +08:00
Shenyz
7181489da0
fix: OIDC Userinfo API response for scope profile (#1598) 2023-03-01 16:56:39 +08:00
Yaodong Yu
e21087aa50
feat: refactor reset password api and forgetPage.js (#1601) 2023-03-01 15:57:42 +08:00
Gucheng Wang
f5672357e6 fix resetting phone bug 2023-02-25 15:46:54 +08:00
Gucheng Wang
8aefa02036 fix message length 2023-02-25 08:36:24 +08:00
Yaodong Yu
3b6ec3e7c4
feat: improve saml idp err message (#1584) 2023-02-24 21:20:57 +08:00