WangGuan
b895926754
feat: use another filename when uploading a duplicated file instead of replacing it ( #1329 )
...
* fix: upload a file with the same name, not replace
* Update resource.go
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2022-11-27 17:32:15 +08:00
Yaodong Yu
b10fb97c92
feat: finish policy list management ( #1317 )
2022-11-25 16:02:20 +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
会思考的下丘脑
56ff06bbea
feat: add parameter v0 for Casbin APIs ( #1315 )
2022-11-23 22:39:17 +08:00
Yaodong Yu
7e756b8ee2
feat: manager applications in organization scope ( #1290 )
...
* feat: manager applications in organization scope(front end)
* fix: application can use own organization and admin provider
* fix: improve methed to get provider
* fix: modify provider methods by convention
2022-11-21 01:17:55 +08:00
Mr Forest
aa6a4dc74f
feat: support login by following wechat official account ( #1284 )
...
* show QRcode when click WeChat Icon
* update how to show qrcode
* handle wechat scan qrcode
* fix api problems
* fix url problems
* fix problems
* modify get frequency
* remove useless print
* fix:fix PR problems
* fix: fix PR problems
* fix:fix PR problem
* fix IMG load delay problems
* fix:fix provider problems
* fix test problems
* use gofumpt to fmt code
* fix:delete useless variables
* feat:add button for follow official account
* fix:fix review problems
* use gofumpt to fmt code
* fix:fix scantype problems
* fix Response problem
* use gofumpt to format code
2022-11-13 15:05:15 +08:00
Yaodong Yu
8d686411ee
feat: support add providers inside the Organization scope ( #1250 )
...
* feat: support add providers inside the Organization scope
Signed-off-by: magicwind <2814461814@qq.com>
* Update ProviderListPage.js
* fix: gloabal admin can see all providers
* fix: table fixed column warning
* fix: edit application page can get all providers
Signed-off-by: magicwind <2814461814@qq.com>
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2022-11-04 21:31:08 +08:00
xAmast
25ee4226d3
feat: clear the session of a signin but non-existent user ( #1246 )
2022-10-29 20:18:02 +08:00
wenxuan70
25d56ee8d5
feat: allow captcha to be enabled when logging in ( #1211 )
...
* Fix bug in GetAcceptLanguage()
* feat: allow captcha to be enabled when logging in
* feat: when the login password is wrong, enable captcha
* feat: Restrict captcha from frontend
* fix: modify CaptchaModal component
* fix: modify the words of i18n
* Update data.json
Co-authored-by: Gucheng Wang <nomeguy@qq.com>
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2022-10-28 13:38:14 +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
fad209a7a3
Don't check username in UpdateUser() API
2022-10-19 22:50:19 +08:00
Gucheng
146aec9ee8
feat: skip username restriction for new users coming from OAuth providers. ( #1225 )
2022-10-17 18:01:01 +08:00
cofecatt
4c7f6fda37
fix: Add restriction to username when signing up ( #1203 )
2022-10-10 19:58:02 +08:00
Gucheng Wang
44ad88353f
Add error to GetDefaultApplication()
2022-10-09 10:39:33 +08:00
Gucheng Wang
67f3c5a489
Add verificationCode to login method
2022-10-03 15:41:20 +08:00
Товарищ программист
9c48582e0c
feat: fix bugs in webauthn ( #1173 )
2022-10-01 11:10:55 +08:00
Gucheng Wang
04709f731b
Update beego to v1.12.11
2022-09-29 19:45:17 +08:00
Mr Forest
a7a8805713
feat: fix dulpicate go routines ( #1167 )
...
* feat:Support simple ldap server
* fix:fix review problems
* fix:fix review problems
* fix: fix ldapserver crash bug
* Update ldapserver.go
* fix: fix dulpicate go routines
* fix gofumpt problems
2022-09-28 20:28:00 +08:00
Mr Forest
07c1e3b836
feat: support simple LDAP server ( #1155 )
...
* feat:Support simple ldap server
* fix:fix review problems
* fix:fix review problems
2022-09-24 21:48:29 +08:00
Gucheng Wang
a3cee496b4
Add add-record API
2022-09-18 17:35:34 +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
Yixiang Zhao
604033aa02
feat: use Casdoor to manage Casbin DB table ( #1100 )
...
* feat: use Casdoor to manage Casbin DB table
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: remove trivial codes
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* chore: go fmt
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* feat: support role definition
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: i18n
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: i18n
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-09-14 22:14:13 +08:00
Yixiang Zhao
b6cdc46023
feat: add defaultApplication for Orgnization ( #1111 )
...
* feat: add defaultApplication for Orgnization
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: remove redundant codes
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: don't use app-built-in
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: add query param
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* Update organization.go
* Update organization.go
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-09-10 20:41:45 +08:00
Resulte Lee
8da50b7893
feat: extend managed accounts for get-account api ( #1068 )
...
* feat: add get-extend-account api
* feat: extend managed accounts for get-account api
* fix go-linter err
* Use GetApplicationsByOrganizationName
2022-08-30 00:57:27 +08:00
conghuhu
a383af0ebc
feat: fix token info not contains roles and permissions ( #1060 )
...
* fix: fix token info not contains roles and permissions
feat: remove repeated code for obtaining roles and permissions in user controller
* Update user.go
* Update user.go
* Update token.go
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-08-24 01:41:26 +08:00
q1anx1
f3b3376a3c
fix: fix get version error ( #1044 )
...
* feat: fix get version error
* feat: more safe
* fix
2022-08-21 10:47:36 +08:00
q1anx1
ef4c3833a4
feat: add system info page ( #1033 )
...
* feat: add system info page
* feat: add some code
* fix
2022-08-20 21:22:46 +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
70f2988f09
feat: revert to the original behavior for wrapActionResponse() ( #1021 )
...
Revert: 340fbe135d
see: https://github.com/casdoor/casdoor-go-sdk/pull/36 .
2022-08-16 00:20:37 +08:00
Gucheng Wang
c92d34e27c
Add GetPermissionsBySubmitter()
2022-08-15 14:09:12 +08:00
q1anx1
108fdc174f
chore(ci): add linter the check go code style ( #991 )
...
* feat(ci): auto format go code
* fix: fix #997
* chore(ci): add go code style linter
* fix: fix cmd error
* chore: add `linter` of needs
* chore: modiy commnet style
2022-08-13 10:57:13 +08:00
Gucheng Wang
340fbe135d
Fix error in wrapActionResponse()
2022-08-09 23:34:07 +08:00
Mikey
79119760f2
style: golint ( #988 )
2022-08-09 16:50:49 +08:00
Yixiang Zhao
dc33b41107
feat: expose some casbin APIs ( #955 )
...
* feat: expose some casbin APIs
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* feat: add BatchEnforce API
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: solve requested changes
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-08-07 23:42:45 +08:00
leoshine
8e5cd18c91
fix: Restrict the request permissions of providers and applications ( #970 )
2022-08-07 16:05:05 +08:00
Gucheng Wang
32b4d98c2a
Add ExtendProductWithProviders().
2022-08-07 15:45:06 +08:00
q1anx1
2ea58cd639
chore(style): use gofumpt
to fmt go code ( #967 )
2022-08-07 12:26:14 +08:00
Mikey
afa9c530ad
fix: panic triggered when user is nil ( #940 )
2022-07-31 23:23:36 +08:00
Mikey
2bb8491499
fix: unable to get user if profile is private ( #936 )
2022-07-31 10:54:41 +08:00
Mikey
293283ed25
feat: add get user by phone ( #934 )
...
* fix: check reset phone & email modify rules
* Update verification.go
* Update organization.go
* feat: add get user by phone
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-07-31 01:02:28 +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
Mikey
2fec3f72ae
fix: check reset phone & email modify rules ( #927 )
...
* fix: check reset phone & email modify rules
* Update verification.go
* Update organization.go
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-07-30 18:17:13 +08:00
Yang Luo
11695220a8
Use user.GetId()
2022-07-30 17:40:30 +08:00
Resulte Lee
155660b0d7
feat: get user api return roles and permissions ( #929 )
2022-07-30 17:31:56 +08:00
Resulte Lee
bdc5c92ef0
fix: send code missing parameter & show more detail responseError ( #910 )
2022-07-25 23:46:38 +08:00
leoshine
6f6159be07
feat: add GET method of logout API ( #903 )
2022-07-22 21:13:49 +08:00