Yang Luo
7caa885131
Fix subscription bugs
2023-05-31 11:33:01 +08:00
Yang Luo
fb1db7823b
Add DummyPaymentProvider
2023-05-30 23:25:58 +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
leoil
34151c0095
feat: Support uploading roles and permssions via xlsx files. ( #1899 )
...
* Support uploading roles and permissions via xlsx file.
* Template xlsx file for uploading users and permissions.
* reformat according to gofumpt.
* fix typo.
2023-05-28 11:29:43 +08:00
Yang Luo
c7cea331e2
Improve NewWechatPaymentProvider() arg
2023-05-27 19:28:24 +08:00
Yaodong Yu
8ede4993af
feat: specify login organization
2023-05-27 19:02:54 +08:00
UsherFall
7fc697b711
ci: fix bug in WeChat payment provider
2023-05-27 17:50:56 +08:00
Yang Luo
95ab2472ce
Make logo length to 200
2023-05-23 21:57:35 +08:00
guangwu
54e4747dbc
refactor: code-optimization ( #1885 )
...
* refactor: code-optimization
* fix: restoring code style
* fix: gofmt
2023-05-23 17:54:51 +08:00
Ilya Sulimanov
88c0856d17
feat: add subscription managment ( #1858 )
...
* feat: subscription managment
* fix: remove console log
* fix: webhooks
* fix linter
* fix: fix via gofumpt
* fix: review changes
* fix: Copyright 2023
* Update account.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-20 15:56:21 +08:00
Yaodong Yu
1260354b36
fix: add sAMAccountName for AD search ( #1869 )
2023-05-19 21:16:59 +08:00
Yang Luo
02333f2f0c
Add "pt" language to backend
2023-05-19 16:42:31 +08:00
Yang Luo
79bd58e0e6
Use util.GetId()
2023-05-19 14:26:32 +08:00
Yang Luo
de73ff0e60
Add IsMaskedEnabled to provider API
2023-05-19 13:09:53 +08:00
Yang Luo
a9d662f1bd
Improve Migrator_1_314_0_PR_1841 speed
2023-05-19 02:55:36 +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
Yaodong Yu
6455734807
fix: fix incorrect LDAP sync status ( #1859 )
2023-05-18 22:03:53 +08:00
Trần Thanh Tịnh
2eefeaffa7
feat: enforce by using resourceId ( #1855 )
...
* feat: enforce by using resourceId
* Update permission.go
* chore: fix cilint for enforcer.go
---------
Co-authored-by: tinhtt4 <tinhtt4@vng.com.vn>
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-18 16:36:03 +08:00
Yang Luo
04eaad1c80
Fix getCertByApplication()
2023-05-18 16:32:43 +08:00
Yang Luo
9f084a0799
Can update user with OAuth values
2023-05-18 15:58:41 +08:00
Yang Luo
437376c472
Fix CheckAccessPermission()
2023-05-18 13:36:16 +08:00
Yang Luo
cc528c5d8c
Add object to webhook
2023-05-17 23:57:14 +08:00
Yang Luo
d4dc236770
Fix refreshExpireInHours zero value issue
2023-05-17 20:47:59 +08:00
Yaodong Yu
9092cad631
feat: support forced binding MFA after login ( #1845 )
2023-05-17 01:13:13 +08:00
Yang Luo
0b5ecca5c8
Support empty application in page
2023-05-16 22:17:39 +08:00
Yang Luo
695a612e77
Improve passwordType in CheckPassword()
2023-05-16 20:14:05 +08:00
Alexander Egorov
645d53e2c6
feat: User should have PasswordType like Organization ( #1841 )
...
* fixes #1840 : [backend] User should have PasswordType like Organization is
* Update migrator.go
* Update and rename migrator_1_314_0_PR_1838.go to migrator_1_314_0_PR_1841.go
* Update user.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-16 20:11:19 +08:00
Yang Luo
776a682fae
Improve args of Enforce() API
2023-05-12 21:32:48 +08:00
Yang Luo
96a3db21a1
Support LDAP search by user tag
2023-05-12 13:03:43 +08:00
Yang Luo
c33d537ac1
Add formCssMobile to application
2023-05-12 12:16:03 +08:00
XDTD
cb542ae46a
feat: fix org admin permissions ( #1822 )
2023-05-09 00:06:52 +08:00
Yaodong Yu
50586a9716
feat: improve determination about whether dest is mail or phone and mask props ( #1814 )
2023-05-07 21:19:51 +08:00
Yaodong Yu
eb39e9e044
feat: add multi-factor authentication (MFA) feature ( #1800 )
...
* feat: add two-factor authentication interface and api
* merge
* feat: add Two-factor authentication accountItem and two-factor api in frontend
* feat: add basic 2fa setup UI
* rebase
* feat: finish the two-factor authentication
* rebase
* feat: support recover code
* chore: fix eslint error
* feat: support multiple sms account
* fix: client application login
* fix: lint
* Update authz.go
* Update mfa.go
* fix: support phone
* fix: i18n
* fix: i18n
* fix: support preferred mfa methods
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-05 21:23:59 +08:00
Yang Luo
bf6d5e529b
Add "from" to Email provider
2023-05-04 23:41:37 +08:00
Yang Luo
05c063ac24
Set email's SkipUsernameCheck to true
2023-05-04 00:29:12 +08:00
Yang Luo
84a7fdcd07
Handle message answer
2023-05-02 01:30:06 +08:00
Yang Luo
eea2e1d271
Add ai package
2023-05-01 17:19:45 +08:00
Yang Luo
7e4562efe1
Change org.defaultAvatar to 200 length
2023-04-29 08:33:04 +08:00
June
da21c92815
feat: support sub role synced update ( #1794 )
2023-04-28 22:14:37 +08:00
OutOfEastGate
66c15578b1
feat: fix the order of Method and Name in System Info ( #1797 )
...
* fix: fixed the order of Method and Name in System Info
* fix: add i18n for System Info
2023-04-28 22:11:10 +08:00
OutOfEastGate
e4c36d407f
feat: fix prometheus filter bugs ( #1792 )
...
* fix: fix prometheus
* fix: count latency with prefix api
* fix: latency should not be counted when startTime is nil
2023-04-26 22:18:48 +08:00
June
4c1915b014
fix: make query with like more precise ( #1791 )
2023-04-26 18:21:13 +08:00
Yaodong Yu
6c2b172aae
feat: fix function CheckAccountItemModifyRule ( #1789 )
...
* feat: fix function CheckAccountItemModifyRule
* fix: admin changes its own username
* fix: current user changes its own username
* Update user.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-04-26 16:21:58 +08:00
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