Skip to content

Commit 6ead5c4

Browse files
author
piexlmax
committed
修改充值用户密码无权限的初始数据bug
1 parent 0c39c0a commit 6ead5c4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

server/source/system/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (a *api) Initialize() error {
2929
{ApiGroup: "系统用户", Method: "POST", Path: "/user/setUserAuthorities", Description: "设置权限组"},
3030
{ApiGroup: "系统用户", Method: "POST", Path: "/user/changePassword", Description: "修改密码(建(选择)"},
3131
{ApiGroup: "系统用户", Method: "POST", Path: "/user/setUserAuthority", Description: "修改用户角色(必选)"},
32-
{ApiGroup: "系统用户", Method: "POST", Path: "/api/resetPassword", Description: "重置用户密码"},
32+
{ApiGroup: "系统用户", Method: "POST", Path: "/user/resetPassword", Description: "重置用户密码"},
3333

3434
{ApiGroup: "api", Method: "POST", Path: "/api/createApi", Description: "创建api"},
3535
{ApiGroup: "api", Method: "POST", Path: "/api/deleteApi", Description: "删除Api"},

server/source/system/casbin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func (c *casbin) Initialize() error {
5353
{PType: "p", V0: "888", V1: "/user/changePassword", V2: "POST"},
5454
{PType: "p", V0: "888", V1: "/user/setUserAuthority", V2: "POST"},
5555
{PType: "p", V0: "888", V1: "/user/setUserAuthorities", V2: "POST"},
56+
{PType: "p", V0: "888", V1: "/user/resetPassword", V2: "POST"},
5657

5758
{PType: "p", V0: "888", V1: "/fileUploadAndDownload/findFile", V2: "GET"},
5859
{PType: "p", V0: "888", V1: "/fileUploadAndDownload/breakpointContinueFinish", V2: "POST"},

0 commit comments

Comments
 (0)