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
Yang Luo
38f031bc86
Show access secret if isAdminOrSelf is true in get-user and get-account APIs
2023-07-19 19:14:53 +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
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
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
Yaodong Yu
3e13e61d8f
fix: sdk user is not Global Admin ( #1868 )
2023-05-19 21:24:55 +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
OutOfEastGate
66c15578b1
feat: fix the order of Method and Name in System Info ( #1797 )
...
* fix: fixed the order of Method and Name in System Info
* fix: add i18n for System Info
2023-04-28 22:11:10 +08:00
OutOfEastGate
e4c36d407f
feat: fix prometheus filter bugs ( #1792 )
...
* fix: fix prometheus
* fix: count latency with prefix api
* fix: latency should not be counted when startTime is nil
2023-04-26 22:18:48 +08:00
Yaodong Yu
6c2b172aae
feat: fix function CheckAccountItemModifyRule ( #1789 )
...
* feat: fix function CheckAccountItemModifyRule
* fix: admin changes its own username
* fix: current user changes its own username
* Update user.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-04-26 16:21:58 +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
xAmast
25ee4226d3
feat: clear the session of a signin but non-existent user ( #1246 )
2022-10-29 20:18:02 +08:00
Gucheng Wang
04709f731b
Update beego to v1.12.11
2022-09-29 19:45:17 +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
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
Yi Zhan
8080927890
fix: redirect for non-built-in app logout ( #587 )
...
Signed-off-by: Steve0x2a <stevesough@gmail.com>
2022-03-19 19:50:05 +08:00
Yang Luo
bf5d4eea48
Add alipay provider.
2022-03-06 22:46:02 +08:00
Gucheng Wang
db37f53d6c
Update license headers.
2022-02-13 23:39:27 +08:00
Steve0x2a
051752340d
feat: add userinfo endpoint ( #447 )
...
* feat: add userinfo endpoint
Signed-off-by: 0x2a <stevesough@gmail.com>
* feat: add scope support
Signed-off-by: 0x2a <stevesough@gmail.com>
* fix: modify the endpoint of discovery
Signed-off-by: 0x2a <stevesough@gmail.com>
2022-01-26 11:56:01 +08:00
Gucheng Wang
c22ab44894
Update import path.
2022-01-20 14:11:46 +08:00
Gucheng Wang
030c1caa50
Fix bug in IsGlobalAdmin().
2022-01-15 23:23:14 +08:00
Gucheng Wang
b91b4aec91
Allow global admin to modify username.
2022-01-13 23:20:10 +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
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
Kininaru
4a930121c4
feat: session without autosignin will expire
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-07-19 10:14:14 +08:00
Kininaru
d83b86df37
refactor: SessionUser -> SessionUsername
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-07-19 10:14:14 +08:00
Yang Luo
0127f8fb63
Improve response message.
2021-03-28 10:36:47 +08:00
Yang Luo
d6715c7601
Improve API error handling.
2021-03-28 00:48:34 +08:00
Yang Luo
64c9548019
Update license header.
2021-03-13 23:09:14 +08:00
Yang Luo
b5eb673c81
Add user list and edit pages.
2020-10-20 23:14:03 +08:00