mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /kind feature /area core /milestone 2.0 #### What this PR does / why we need it: This PR provides an API to change password of user. If the username is equal to `-`, we will change the password of current login user. Otherwise, we update the password according the request URI. Here is an example: - Request ```bash curl -X 'PUT' \ 'http://localhost:8090/apis/api.halo.run/v1alpha1/users/-/password' \ -H 'accept: */*' \ -H 'Content-Type: */*' \ -d '{ "password": "openhalo" }' ``` - Response ```json { "spec": { "displayName": "Administrator", "email": "admin@halo.run", "password": "{bcrypt}$2a$10$/v8/nbxoUFGBDoWfOF2NHOHk.2RS0OFfS5AtN2g/mCGjScX19KvSG", "registeredAt": "2022-07-15T07:50:25.151513387Z", "twoFactorAuthEnabled": false, "disabled": false }, "apiVersion": "v1alpha1", "kind": "User", "metadata": { "name": "admin", "annotations": { "rbac.authorization.halo.run/role-names": "[\"super-role\"]" }, "version": 5, "creationTimestamp": "2022-07-15T07:50:25.255909669Z" } } ``` #### Which issue(s) this PR fixes: <!-- PR 合并时自动关闭 issue。 Automatically closes linked issue when PR is merged. 用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)` Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes # #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note None ``` |
||
---|---|---|
.github | ||
config/checkstyle | ||
docs/developer-guide | ||
gradle/wrapper | ||
hack | ||
src | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
Dockerfile | ||
LICENSE | ||
OWNERS | ||
README.md | ||
SECURITY.md | ||
build.gradle | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
settings.gradle |
README.md
Halo [ˈheɪloʊ],一款现代化的开源博客/CMS系统,值得一试。
快速开始
Fat Jar
下载最新的 Halo 运行包:
curl -L https://github.com/halo-dev/halo/releases/download/v1.4.17/halo-1.4.17.jar --output halo.jar
其他地址:https://docs.halo.run/getting-started/downloads
java -jar halo.jar
Docker
docker run -it -d --name halo -p 8090:8090 -v ~/.halo:/root/.halo --restart=always halohub/halo
详细部署文档请查阅:https://docs.halo.run/getting-started/install/linux
在线体验
- 环境地址:https://demo.halo.run
- 后台地址:https://demo.halo.run/admin
- 用户名:demo
- 密码:P@ssw0rd123..
- 使用前请阅读:https://demo.halo.run/archives/tips
生态
项目 | 状态 | 描述 |
---|---|---|
halo-admin | Web 管理端 UI,已内置在主应用 | |
js-sdk | JavaScript SDK | |
halo-comment | 独立评论组件,可以非常方便的集成到主题中 | |
halo-comment-normal | 另外一款评论组件 | |
halo-mobile-app | 已停止维护 | 移动端管理 APP |
tencent-cloudbase-halo | 无 | 腾讯云 CloudBase 一键部署配置 |
halo-theme-* | 无 | GitHub 上开源的 Halo 主题集合 |
许可证
Halo 使用 GPL-v3.0 协议开源,请遵守开源协议。
贡献
参考 CONTRIBUTING。