Skip to content

Commit

Permalink
feat: 分享用户重置密码
Browse files Browse the repository at this point in the history
feat: 分享有效期
feat: share管理可选的简洁模式
feat: 请求速率限制
fix: 无法跳转至自定义反代的地址的bug
fix: 默认语言不是中文的bug
fix: 跳转登录会被safari拦截的问题
  • Loading branch information
nianhua99 committed May 25, 2024
1 parent ddf345e commit ed44904
Show file tree
Hide file tree
Showing 94 changed files with 929 additions and 662 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ services:
"http": {
"host": "0.0.0.0",
"port": 9000,
"title": "Pandora"
"title": "Pandora",
"rate": 100
},
"database": {
"driver": "sqlite",
Expand Down
1 change: 1 addition & 0 deletions api/v1/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var (
ErrBadRequest = newError(400, "Bad Request")
ErrUnauthorized = newError(401, "Unauthorized")
ErrUsernameOrPassword = newError(402, "Username or Password error")
ErrPasswordNotMatch = newError(403, "Password not match")
ErrNotFound = newError(404, "Not Found")
ErrInternalServerError = newError(500, "Internal Server Error")

Expand Down
7 changes: 7 additions & 0 deletions api/v1/share.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ type LoginShareRequest struct {
Password string `json:"password" form:"password" binding:"required"`
}

type ShareResetPasswordRequest struct {
UniqueName string `json:"uniqueName" binding:"required"`
Password string `json:"password" binding:"required"`
NewPassword string `json:"newPassword" binding:"required"`
ConfirmNewPassword string `json:"confirmNewPassword" binding:"required"`
}

type AddShareRequest struct {
Share model.Share `json:"share" binding:"required"`
}
Expand Down
3 changes: 2 additions & 1 deletion data/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"http": {
"host": "0.0.0.0",
"port": 9000,
"title": "Pandora"
"title": "Pandora",
"rate": 100
},
"database": {
"driver": "sqlite",
Expand Down
1 change: 1 addition & 0 deletions frontend/dist/assets/AccountModal-617c271f.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions frontend/dist/assets/CheckOutlined-e689fa35.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/dist/assets/Login-280636b7.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion frontend/dist/assets/Login-73cecb88.js

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frontend/dist/assets/Page403-0e6b35ea.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion frontend/dist/assets/Page403-9ffe3890.js

This file was deleted.

Loading

0 comments on commit ed44904

Please sign in to comment.