Yaodong Yu
b99a0c3ca2
feat: optimize the "forget password" page ( #1709 )
2023-04-06 23:06:18 +08:00
zzjin
9c8ea027ef
feat: add the missing userId param docs for get-user API ( #1698 )
...
* Add roles to SAML response
* Fix: Add back missing get-user userId param doc.
Signed-off-by: zzjin <tczzjin@gmail.com>
* Update user.go
---------
Signed-off-by: zzjin <tczzjin@gmail.com>
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2023-03-30 18:39:14 +08:00
Yaodong Yu
e21087aa50
feat: refactor reset password api and forgetPage.js ( #1601 )
2023-03-01 15:57:42 +08:00
Yaodong Yu
543b316942
feat: update swagger parameter id description ( #1532 )
2023-02-10 10:42:16 +08:00
Yaodong Yu
ce2a4bbf6e
feat: check uniqueness for email and phone when updating user ( #1461 )
...
* fix: check unique field when update user
* Update data.json
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-01-10 22:34:08 +08:00
Gucheng Wang
090389b86a
Fix bug in CheckAccountItemModifyRule()
2023-01-07 13:49:06 +08:00
Gucheng Wang
57028c2059
Remove duplicated i18n words
2023-01-06 20:24:14 +08:00
Gucheng Wang
a6e9084973
Remove duplicated i18n words
2023-01-06 20:12:32 +08:00
imp2002
4ab2ca7a25
feat: fix checkPermissionForUpdateUser()
logic ( #1454 )
...
* fix: fix `checkPermissionForUpdateUser()` logic
* fix: fix `checkPermissionForUpdateUser()` logic
2023-01-06 00:03:40 +08:00
Mr Forest
c8846f1a2d
feat: fix translate bug in UpdateUser()
( #1451 )
...
* fix: fix translate error
* fix translate bug in UpdateUser()
* Delete DiscordLoginButton.js
2023-01-04 22:54:50 +08:00
imp2002
186f0ac97b
feat: check permission when update user ( #1438 )
...
* feat: check permission when update user
* feat: check permission when update user
* fix: fix organization accountItem modifyRule
* fix: fix organization accountItem modifyRule
2023-01-02 09:27:25 +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
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
cofecatt
4c7f6fda37
fix: Add restriction to username when signing up ( #1203 )
2022-10-10 19:58:02 +08:00
Gucheng Wang
04709f731b
Update beego to v1.12.11
2022-09-29 19:45:17 +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
疯魔慕薇
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
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
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
q1anx1
f0b0891ac9
feat: query user by userId
( #879 )
...
* feat: add `getUserByUserId` func
* Update user.go
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-07-14 21:46:13 +08:00
Yang Luo
10449e89ab
Fix owner bug in GetUser().
2022-07-13 22:56:35 +08:00
Yixiang Zhao
530330bd66
feat: add isProfilePublic setting for accessing user info ( #656 )
...
* feat: add isProfilePublic setting for accessing user info
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: requested changes
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-04-16 15:10:03 +08:00
Yi Zhan
b92d03e2bb
feat: add wechat mini program support ( #658 )
...
* feat: add wechat mini program support
Signed-off-by: Steve0x2a <stevesough@gmail.com>
* fix: accept suggestions.
Signed-off-by: Steve0x2a <stevesough@gmail.com>
* fix: error message and code level modification
Signed-off-by: Steve0x2a <stevesough@gmail.com>
* fix: simplify the use process
Signed-off-by: Steve0x2a <stevesough@gmail.com>
2022-04-15 11:49:56 +08:00
Yixiang Zhao
9f7924a6e0
fix: mask email and phone number on the backend ( #563 )
...
* fix: mask email and phone number on the backend
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: login with masked email or phone
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: improve regex
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-03-15 12:54:57 +08:00
Gucheng Wang
3602d9b9a7
fix: improve error messages
2022-03-07 15:16:09 +08:00
Yixiang Zhao
83a6b757a4
fix: password leakage vulnerability caused by pagination ( #527 )
...
* fix: password leakage vulnerability caused by pagination
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: unsafe get-app-login response fields
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-03-02 20:58:16 +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
Gucheng Wang
b91b4aec91
Allow global admin to modify username.
2022-01-13 23:20:10 +08:00
Yang Luo
2fcc8f5bfe
Support app user in SetPassword().
2021-12-31 13:32:18 +08:00
Yang Luo
377ac05928
Don't clear session in SetPassword().
2021-12-28 23:07:09 +08:00
Yixiang Zhao
10a85f2386
feat: add server-side search, filter and sorter for all pages ( #388 )
...
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2021-12-25 10:55:10 +08:00
Gucheng Wang
318cf52b33
Refactor the original db code.
2021-12-18 01:08:03 +08:00
Gucheng Wang
f4265d015a
Improve user error handling.
2021-12-12 19:59:55 +08:00
Gucheng Wang
6ba658ac60
Support columns arg in UpdateUser().
2021-12-11 14:45:08 +08:00
Gucheng Wang
cc47f3b65d
Improve UpdateUserToOriginalDatabase().
2021-12-11 13:45:26 +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
Gucheng Wang
0b3742b0b1
Add GetSortedUsers() and GetUserCount() APIs.
2021-11-19 10:51:06 +08:00
Yixiang Zhao
b1db47bad1
feat: add server-side pagination ( #312 )
...
Signed-off-by: “seriouszyx” <seriouszyx@foxmail.com>
2021-11-06 11:32:22 +08:00
Yang Luo
398ba19fa5
Add CheckUserPassword() API.
2021-08-15 21:57: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
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