ZhaoYP 2001
7cd8f030ee
feat: support IP limitation for user entry pages ( #3267 )
...
* feat: support IP limitation for user entry pages
* fix: error message, ip whiteList, check_entry_ip
* fix: perform checks on the backend
* fix: change the implementation of checking IpWhitelist
* fix: add entryIpCheck in SetPassword and remove it from VerifyCode
* fix: remove additional error message pop-ups
* fix: add isRestricted and show ip error in EntryPage.js
* fix: error message
* Update auth.go
* Update check_ip.go
* Update check_ip.go
* fix: update return value of the check function from string to error
* fix: remoteAddress position
* fix: IP whitelist
* fix: clientIp
* fix:add util.GetClientIpFromRequest
* fix: remove duplicate IP and port separation codes and remove extra special characters after clientIp
* fix: gofumpt
* fix: getIpInfo and localhost
---------
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2024-10-15 20:40:14 +08:00
ZhaoYP 2001
e2ce9ad625
feat: handle null account item issue in CheckPermissionForUpdateUser() ( #3202 )
...
* feat: improve the logic of the permission check code for users to modify account items
* fix: add skip operation for deleted account items in update-user API
* fix: add the function of removing deleted account item
2024-09-14 15:00:10 +08:00
DacongDA
df2a5681cc
feat: add missing account items in CheckPermissionForUpdateUser() ( #3094 )
2024-08-01 23:34:12 +08:00
DacongDA
793a7d6cda
feat: add free charge price mode for product buy page ( #3015 )
...
* feat: add free charge price mode for product buy page
* fix: improve code format
2024-06-22 14:05:53 +08:00
DacongDA
e5f9aab28f
feat: support resetting password on first login ( #2980 )
...
* feat: support reset password in first login
* feat: disable needUpdatePassword when user haven't email and phone and mfa
2024-06-02 01:00:55 +08:00
DacongDA
2daf26aa88
feat: use lowercase username when isUsernameLowered is enabled ( #2952 )
...
* feat: auto trim username during login and lowercase when isUsernameLowered enabled in conf
* fix: fix linter error
* fix: fix linter error
* fix: fix linter error
2024-05-17 11:43:19 +08:00
Yang Luo
af2d26daf2
Add object.IsAppUser()
2024-04-24 01:10:38 +08:00
HGZ-20
391a533ce1
feat: add "Face ID" login method ( #2782 )
...
Face Login via face-api.js
2024-03-16 09:04:00 +08:00
Yang Luo
5a0d1bcb6e
Support login by user ID
2024-02-28 01:28:24 +08:00
DacongDA
d731c3c934
feat: add regex support for account item ( #2714 )
...
* feat: add regex support for account item
* feat: use reflect to process user field
* fix: fix lint problem
* feat: improve code format and fix reflect error
2024-02-17 15:24:36 +08:00
haiwu
0ac2b69f5a
feat: support WeChat Pay via JSAPI ( #2488 )
...
* feat: support wechat jsapi payment
* feat: add log
* feat: update sign
* feat: process wechat pay result
* feat: process wechat pay result
* feat: save wechat openid for different app
* feat: save wechat openid for different app
* feat: add SetUserOAuthProperties for signup
* feat: fix openid for wechat
* feat: get user extra property in buyproduct
* feat: remove log
* feat: remove log
* feat: gofumpt code
* feat: change lr->crlf
* feat: change crlf->lf
* feat: improve code
2023-11-11 17:16:57 +08:00
Yang Luo
988b14c6b5
Fix user's UpdatedTime in other APIs
2023-11-08 20:22:28 +08:00
ZhiKai
c3b3840994
fix: fix update score permission check ( #2335 )
...
* fix: Fixed the missing permission check when updating the score field.
* Update object/user_util.go
2023-09-16 21:06:20 +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
ea10f8e615
feat: make hard-coded authz adapter editable, rename adapter to ormer ( #2149 )
...
* refactor: rename casbinAdapter to casdoorAdapter
* feat: add initEnforcer
* fix: router
* refactor: make hard-coded code configurable
* fix: data type
* feat: support sqlite3
* feat: disable delete and edit name for built in resources
* feat: optimize code
* fix: init
* fix: e2e
* fix: remove datasourcename
* fix: revert rename
* refactor: change all ORM's Adatper to Ormer
* refactor: name
2023-07-29 15:07:04 +08:00
Yang Luo
0a0c1b4788
Fix "Groups is immutable" bug when updating a user
2023-07-13 00:03:18 +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
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
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
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
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
ee5c3f3f39
feat: fix display name null error during 3rd-party binding ( #1747 )
2023-04-17 15:39:33 +08:00
Yaodong Yu
e21087aa50
feat: refactor reset password api and forgetPage.js ( #1601 )
2023-03-01 15:57:42 +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
Zayn Xie
9256791420
feat: app session control and db migrate ( #1539 )
...
* feat: integrate application session management into Casdoor's session management (#774 ) && standardized the database migration process (#1533 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 )
* feat: integrate application session management into Casdoor's session management (#774 ) && standardized the database migration process
* feat: integrate application session management into Casdoor's session management (#774 ) && standardized the database migration process
* feat: integrate application session management into Casdoor's session management (#774 ) && standardized the database migration process
---------
Co-authored-by: Zayn Xie <84443886+xiaoniuren99@users.noreply.github.com>
* fix: migrate err
* fix: migrate err
* feat: app session control and db migrate
* feat: app session control and db migrate
* feat: app session control and db migrate
---------
Co-authored-by: Zayn Xie <84443886+xiaoniuren99@users.noreply.github.com>
2023-02-12 09:33:24 +08:00
tom2nonames
8456b7f7c4
fix: with error pq: column "DingTalk" of relation "user" does not exist ( #1116 )
...
* feat: add dingtalk union_id
* fix: with pg, column Dingtalk of relation user table does not exist.
* Update user_util.go
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-09-10 13:08:37 +08:00
tom2nonames
6035b98653
feat: add dingtalk union_id ( #1110 )
2022-09-08 14:44:06 +08:00
q1anx1
3dd56195d9
fix: fix the problem of link error ( #923 )
2022-07-28 21:52:10 +08:00
Resulte Lee
912d9d0c01
feat: DingTalk provider value case unsensitive ( #724 )
2022-04-30 16:20:20 +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
1be777c08f
Fix GetUserByField()'s bug for idCard.
2022-01-13 12:48:15 +08:00
Gucheng Wang
69e0f4e40d
Add idCard in GetUserByFields().
2022-01-04 19:52:29 +08:00
Yang Luo
9c3117beb0
Rename UpdateUser functions.
2021-08-21 22:54:53 +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
Yang Luo
54e97d57bf
Use OAuth avatar to update default avatar.
2021-06-21 00:54:07 +08:00
Yang Luo
6dc3fd0f45
Avoid linking the same account twice.
2021-06-18 23:25:24 +08:00
Yang Luo
8e5f3c18e1
Add UpdateUserInternal().
2021-06-09 21:41:27 +08:00
Yang Luo
f672045b45
Allow to sign up with OAuth.
2021-06-09 21:28:33 +08:00
Yang Luo
eb658ad8ee
Support affiliation sync.
2021-06-04 23:26:30 +08:00
Yang Luo
11f1f8f440
Show properties in user page.
2021-05-30 18:35:05 +08:00
Yang Luo
dc89f2b0f6
Add Properties to user.
2021-05-30 18:24:22 +08:00
Yang Luo
badd75b894
Refactor out user_util.go
2021-05-30 13:37:34 +08:00