feats(auth): login with email and password
This commit is contained in:
@@ -11,7 +11,7 @@ description: 选择你的部署方式
|
||||
|
||||
## 使用 Vercel 部署(推荐)
|
||||
|
||||
[](https://vercel.com/new/clone?repository-url=https://github.com/oiov/wr.do.git&project-name=wrdo&env=DATABASE_URL&env=AUTH_SECRET&env=RESEND_API_KEY&env=NEXT_PUBLIC_EMAIL_R2_DOMAIN&env=GITHUB_TOKEN)
|
||||
[](https://vercel.com/new/clone?repository-url=https://github.com/oiov/wr.do.git&project-name=wrdo)
|
||||
|
||||
## 使用 Docker Compose 部署
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ description: Choose your deployment method
|
||||
|
||||
## Deploy with Vercel (Recommended)
|
||||
|
||||
[](https://vercel.com/new/clone?repository-url=https://github.com/oiov/wr.do.git&project-name=wrdo&env=DATABASE_URL&env=AUTH_SECRET&env=RESEND_API_KEY&env=NEXT_PUBLIC_EMAIL_R2_DOMAIN&env=GITHUB_TOKEN)
|
||||
[](https://vercel.com/new/clone?repository-url=https://github.com/oiov/wr.do.git&project-name=wrdo)
|
||||
|
||||
Remember to fill in the necessary environment variables.
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ description: 简单介绍 WR.DO 部署所需的环境变量
|
||||
|
||||
或参考社区优秀部署文档:
|
||||
- https://linux.do/t/topic/711806
|
||||
- https://bravexist.cn/2025/06/wr.do.html
|
||||
</Callout>
|
||||
|
||||
<Steps>
|
||||
|
||||
@@ -12,6 +12,7 @@ description: How to install the project.
|
||||
|
||||
Or read unofficial deployment tutorials:
|
||||
- https://linux.do/t/topic/711806
|
||||
- https://bravexist.cn/2025/06/wr.do.html
|
||||
</Callout>
|
||||
|
||||
<Steps>
|
||||
@@ -26,7 +27,7 @@ npx create-next-app wrdo --example "https://github.com/oiov/wr.do"
|
||||
|
||||
Or deploy with Vercel :
|
||||
|
||||
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Foiov%2Fwr.do)
|
||||
[](https://vercel.com/new/clone?repository-url=https://github.com/oiov/wr.do.git&project-name=wrdo)
|
||||
|
||||
<Callout type="warning" twClass="mt-4">
|
||||
A good way to create your repository, but the deployment will fail because you
|
||||
|
||||
@@ -193,27 +193,7 @@ pnpm dev
|
||||
|
||||
通过浏览器访问:[http://localhost:3000](http://localhost:3000)
|
||||
|
||||
## 7. 设置系统
|
||||
|
||||
#### 创建第一个账号并将账号权限更改为 ADMIN
|
||||
|
||||
请按以下步骤操作:
|
||||
|
||||
* 1. 通过 [http://localhost:3000/login](http://localhost:3000/login) 注册登录你的第一个账号;
|
||||
* 2. 通过 [http://localhost:3000/setup](http://localhost:3000/setup) 将账号权限更改为 ADMIN;
|
||||
* 3. 然后根据 **面板引导** 配置系统并添加第一个域名。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
<Callout type="info">
|
||||
将账号权限更改为 ADMIN 后,你可以刷新页面并访问 http://localhost:3000/admin。
|
||||
|
||||
<strong>你必须至少添加一个域名,才能使用短链接、邮件或子域名管理等功能。</strong>
|
||||
</Callout>
|
||||
|
||||
## 8. 部署
|
||||
## 7. 部署教程
|
||||
|
||||
详见:[部署指南](/docs/developer/deploy)
|
||||
|
||||
@@ -227,12 +207,4 @@ pnpm dev
|
||||
https://dash.cloudflare.com/[account_id]/[zone_name]/ssl-tls/configuration
|
||||
```
|
||||
|
||||
将 `SSL/TLS 加密模式` 更改为 `Full` 模式。
|
||||
|
||||
### 如何修改团队计划配额?
|
||||
|
||||
通过 team.ts 文件修改:
|
||||
|
||||
```bash
|
||||
https://github.com/oiov/wr.do/tree/main/config/team.ts
|
||||
```
|
||||
将 `SSL/TLS 加密模式` 更改为 `Full` 模式。
|
||||
@@ -182,27 +182,7 @@ pnpm dev
|
||||
```
|
||||
Via [http://localhost:3000](http://localhost:3000)
|
||||
|
||||
## 7. Setup System
|
||||
|
||||
#### Create the first account and Change the account's role to ADMIN
|
||||
|
||||
Follow the steps below:
|
||||
|
||||
- 1. Via [http://localhost:3000/login](http://localhost:3000/login), login with your account.
|
||||
- 2. Via [http://localhost:3000/setup](http://localhost:3000/setup), change the account's role to ADMIN.
|
||||
- 3. Then follow the **panel guide** to config the system and add the first domain.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
<Callout type="info">
|
||||
After change the account's role to ADMIN, then you can refresh the website and access http://localhost:3000/admin.
|
||||
|
||||
<strong>You must add at least one domain to start using short links, email or subdomain management features.</strong>
|
||||
</Callout>
|
||||
|
||||
## 8. Deploy
|
||||
## 7. Deploy
|
||||
|
||||
See [Deploy Guide](/docs/developer/deploy).
|
||||
|
||||
@@ -216,12 +196,4 @@ Via:
|
||||
https://dash.cloudflare.com/[account_id]/[zone_name]/ssl-tls/configuration
|
||||
```
|
||||
|
||||
Change the `SSL/TLS Encryption` Mode to `Full` in the Cloudflare dashboard.
|
||||
|
||||
### How can I change the team plan quota?
|
||||
|
||||
Via team.ts:
|
||||
|
||||
```bash
|
||||
https://github.com/oiov/wr.do/tree/main/config/team.ts
|
||||
```
|
||||
Change the `SSL/TLS Encryption` Mode to `Full` in the Cloudflare dashboard.
|
||||
Reference in New Issue
Block a user