wxy
684cbdb951
fix: replace the wrong param name willExist ( #2389 )
2023-10-10 21:47:38 +08:00
YunShu
559a91e8ee
feat: fix bug that failed to set password after changing username ( #2296 )
...
* fix: failed to set password after changing username
When we add a new member to an organization using Casdoor, Casdoor will automatically generate a member with a random username, such as "user_qvducc". When we change the username, for example, to "yunshu", an issue arises where we are unable to successfully edit the password. This is because Casdoor searches for a user based on `owner/username`, and before any changes are saved, the username in the database remains "user_qvducc". However, the frontend uses `orgName/yunshu` instead of `orgName/user_qvducc` to send the request to change the password. As a result, the backend cannot find the user and the password change fails.
* Update user.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-09-03 00:04:48 +08:00
haiwu
05b2f00057
feat: support Pricings flow ( #2250 )
...
* feat: fix price display
* feat: support subscription
* feat: fix select-plan-> signup -> buy-plan -> login flow
* feat: support paid-user to login and jump to the pricing page
* feat: support more subscription state
* feat: add payment providers for plan
* feat: format code
* feat: gofumpt
* feat: redirect to buy-plan-result page when user have pending subscription
* feat: response err when pricing don't exit
* Update PricingListPage.js
* Update ProductBuyPage.js
* Update LoginPage.js
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-08-24 23:20:50 +08:00
Yang Luo
25ec1bdfa8
Fix bug in getUserOrganization()
2023-08-20 00:53:51 +08:00
Yaodong Yu
e5a189e0f4
fix: remove isGlobalAdmin field in user ( #2235 )
...
* refactor: remove isGlobalAdmin field in user
* fix: upload xlsx
* fix: remove field in account table
2023-08-19 12:23:15 +08:00
Yaodong Yu
d12117324c
feat: support admin to enable MFA for other users ( #2221 )
...
* feat: support admin enable user sms and email mfa
* chore: update ci
* chore: update ci
2023-08-17 17:19:24 +08:00
Yaodong Yu
27959e0f6f
fix: fix crash in UserEditPage.js
2023-08-16 15:57:48 +08:00
Yang Luo
b7a001ea39
Fix property empty issue
2023-08-14 12:09:50 +08:00
Yang Luo
62b2082e82
Add getUserOrganization() to user edit page
2023-08-08 21:58:27 +08:00
Yaodong Yu
3220a04fa9
fix: use org/groupName replace groupName ( #2180 )
2023-08-06 20:16:44 +08:00
Yaodong Yu
a6f803aff1
feat: refactor code to use responseOK everywhere ( #2111 )
...
* refactor: use responseOK return frontend format json data
* revert handle error
* revert handle error
2023-07-23 09:49:16 +08:00
haiwu
d7110ff8bf
feat: support MetaMask provider ( #2084 )
...
* feat: add metamask provider
* feat: add eth login
* feat: check eth sign
* feat: finish metamask signin/signup
* feat: support MetaMask provider link/unlink
* feat: update web/craco.config.js to handle polyfill
* feat: gofumpt idp/metamask.go
* feat: update MetaMask logo path
* feat: support MetaMask avatar
2023-07-20 17:51:36 +08:00
Yang Luo
7bfb74ba18
Fix typo
2023-07-19 19:34:43 +08:00
Yaodong Yu
347d3d2b53
feat: fix bugs in MFA ( #2033 )
...
* fix: prompt mfa binding
* fix: clean session when leave promptpage
* fix: css
* fix: force enable mfa
* fix: add prompt rule
* fix: refactor directory structure
* fix: prompt notification
* fix: fix some bug and clean code
* fix: rebase
* fix: improve notification
* fix: i18n
* fix: router
* fix: prompt
* fix: remove localStorage
2023-07-07 12:30:07 +08:00
Gucheng Wang
6edfc08b28
Refactor the code
2023-07-07 00:13:05 +08:00
Baihhh
bc1c4d32f0
feat: user can upload ID card info ( #2040 )
...
* feat:user can upload ID card(#1999 )
Signed-off-by: baihhh <2542274498@qq.com>
* feat: user can upload ID card, add diff languages
Signed-off-by: baihhh <2542274498@qq.com>
---------
Signed-off-by: baihhh <2542274498@qq.com>
2023-07-06 20:36:32 +08:00
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
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
Yang Luo
d505a4bf2d
Remove org API calls in PasswordModal page
2023-06-21 00:49:03 +08:00
Yaodong Yu
d0ac265c91
fix: Deprecate the id field in group ( #1987 )
2023-06-18 23:33:13 +08:00
Yang Luo
b01ba792bb
Rename to accessSecret
2023-06-16 20:42:15 +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
Jiawei Chen
0bda29f143
feat: show 404 error for non-existent objects in edit pages
2023-06-10 01:56:15 +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
55fd31f575
Disable built-in/admin's unexpected change
2023-05-04 22:12:57 +08:00
Yang Luo
b89cf1de07
Add karma to account items
2023-04-15 16:05:33 +08:00
Yang Luo
8d1ae4ea08
Fix organization page bug
2023-03-31 18:35:57 +08:00
Yaodong Yu
a8937d3046
feat: refactor agreement modal and create folders to classify components ( #1686 )
...
* refactor: refactor agreement modal and create folders to classify components
* fix: i18
* fix: i18
* fix: i18n
2023-03-26 18:44:47 +08:00
Yaodong Yu
8427d63872
feat: fix empty value of countryCode for signup ( #1620 )
2023-03-05 21:52:40 +08:00
Yaodong Yu
8696b08db2
fix: empty countryCode of current account causes crash ( #1603 )
...
* fix: empty countryCode of current account cause crush
* Update UserEditPage.js
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-03-01 22:09:48 +08:00
Yaodong Yu
afd3c4ed25
fix: fix bug form country code init error ( #1591 )
2023-02-27 22:07:28 +08:00
Yaodong Yu
5caceb4ae2
feat: fix bug that signup country code is undefined ( #1590 )
...
* feat: fix signup country code is undefined
* refactor: valid phone number in CN
2023-02-27 20:10:59 +08:00
Gucheng Wang
f5672357e6
fix resetting phone bug
2023-02-25 15:46:54 +08:00
Gucheng Wang
d104a292e7
fix normal user phone edit control
2023-02-25 11:47:34 +08:00
Yaodong Yu
eb72c9f273
feat: support multiple country codes for sending SMS ( #1557 )
...
* feat: support multiple country code
* feat: improve UI
* feat: migrate accountItem
* fix: Aliyun compatible
* fix: phone validate
* fix: typo
2023-02-16 22:53:28 +08:00
Yaodong Yu
19e7d0b0bd
refactor: improve code reuse rate ( #1515 )
2023-02-02 16:43:51 +08:00
Yaodong Yu
b34e16b145
fix: table do not have unique key ( #1512 )
2023-02-02 13:53:18 +08:00
Yaodong Yu
fcdf1e8dd2
feat: improve Select component performance ( #1472 )
2023-01-12 23:11:11 +08:00
Yaodong Yu
ead844131e
feat: improve user edit page to fix missing fields and page crash ( #1463 )
2023-01-11 16:15:06 +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
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
Yaodong Yu
d498bc60ce
feat: edit user properties ( #1435 )
2022-12-31 15:27:53 +08:00
Yaodong Yu
9f3ee275a8
feat: reformat frontend alert texts with correct i18n ( #1341 )
...
* fix: add i18
* fix: standard prompt message
2022-12-02 00:06:28 +08:00
Yaodong Yu
d815bf92bd
fix: handle add message in frontend ( #1340 )
2022-11-29 20:32:47 +08:00
Yaodong Yu
b7cd598ee8
fix: fail to return after flush the page ( #1325 )
...
* fix: fail to return after flush the page
Old methed just get the url path parameter when click the butten. But when the page flushed, the returnUrl will disappear, so can not return to the specified page.
* Update UserEditPage.js
* Update UserEditPage.js
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2022-11-25 23:08:45 +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
Yaodong Yu
6a1ec51978
feat: fix SSRF when download avatar ( #1193 )
2022-10-20 14:47:08 +08:00
xxrl
8d41508d6b
fix: center loading in account page ( #1209 )
...
* fix: center loading in account page
* Update UserEditPage.js
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-10-11 00:52:08 +08:00
Gucheng Wang
2247c6a883
Add isSelf() in user edit page
2022-09-29 22:24:05 +08:00