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
Yang Luo
b817a55f9f
Fix error handling in SetPassword()
2023-06-22 14:51:56 +08:00
Yaodong Yu
c391af4552
feat: improve MFA by using user's own Email and Phone ( #2002 )
...
* refactor: mfa
* fix: clean code
* fix: clean code
* fix: fix crash and improve robot
2023-06-21 18:56:37 +08:00
Yaodong Yu
65716af89e
feat: deprecate the user group relation table ( #1990 )
...
* fix: deprecate the user group relation table
* fix: clean code
* fix: fix trigger
* Update group.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-06-19 19:08:45 +08:00
Yaodong Yu
d0ac265c91
fix: Deprecate the id field in group ( #1987 )
2023-06-18 23:33:13 +08:00
Yang Luo
a932b76fba
Remove useless check in SetPassword()
2023-06-17 00:58:31 +08:00
leoil
0f57ac297b
ci: add password complexity options to organization edit page ( #1949 )
...
* Support uploading roles and permissions via xlsx file.
* Template xlsx file for uploading users and permissions.
* reformat according to gofumpt.
* fix typo.
* add password complexity options to organization edit page.
* add password complexity options to organization edit page.
* Fixed Typos.
* Fixed Typos.
* feat:add password complexity options to organization edit page
* Auto generate i18n fields.
* Refactor code according to instructions
* Support autocheck passwd complexity in frontend when setting passwd in user edit page.
* feat:Backend Support for password validation in signup and forget page.
* feat:Frontend Support for password validation in signup and forget page.
* Add default password complex option & Update historical empty filed with default option.
* Migrator for field `password_complex_options` in org table.
* feat: support frontend password complex option check in user_edit/forget/signup page.
* frontend update for user edit page
* update i18n file
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-06-17 00:07:36 +08:00
Yaodong Yu
7058a34f87
feat: complete group tree ( #1967 )
...
* feat: complete group tree
* feat: ui
* fix: i18n
* refactor code
* fix: support remove user from group
* fix: format code
* Update organization.go
* Update organization.go
* Update user_group.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-06-14 23:27:46 +08:00
XDTD
967fa4be68
feat: add access key and secret key for user ( #1971 )
2023-06-13 22:18:17 +08:00
Yaodong Yu
0e14a2597e
feat: Add tree structure to organization page ( #1910 )
...
* rebase master
* feat: add group in userEditPage
* feat: use id as the pk
* feat: add groups item in user
* feat: add tree component
* rebase
* feat: ui
* fix: fix some bug
* fix: route
* fix: ui
* fix: improve ui
2023-06-12 09:27:16 +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
June
d20f3eb039
feat: support get user by userId and owner ( #1870 )
...
* feat: support get user by userId and owner
* Update user.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-19 21:46:44 +08:00
Yang Luo
79bd58e0e6
Use util.GetId()
2023-05-19 14:26:32 +08:00
Yang Luo
55fd31f575
Disable built-in/admin's unexpected change
2023-05-04 22:12:57 +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
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
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