-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325 from Jzow/master
Add email login type
- Loading branch information
Showing
51 changed files
with
10,684 additions
and
10,923 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,6 @@ public class AccountRegisterDTO { | |
String phoneNumber; | ||
|
||
String sms; | ||
|
||
String email; | ||
} |
13 changes: 13 additions & 0 deletions
13
core/domain/src/main/java/com/wansenai/dto/user/EmailLoginDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.wansenai.dto.user; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class EmailLoginDTO { | ||
|
||
private String email; | ||
|
||
private Integer type; | ||
|
||
private String emailCode; | ||
} |
13 changes: 13 additions & 0 deletions
13
core/domain/src/main/java/com/wansenai/dto/user/UpdatePasswordByEmailDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.wansenai.dto.user; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class UpdatePasswordByEmailDto { | ||
|
||
String password; | ||
|
||
String email; | ||
|
||
String emailCode; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
@Data | ||
public class UpdatePasswordDto { | ||
|
||
String username; | ||
|
||
String password; | ||
|
||
String phoneNumber; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ public interface EmailConstant { | |
String EMAIL_USER_NAME = "[email protected]"; | ||
|
||
/** 邮箱授权码 */ | ||
String EMAIL_PASSWORD = "YSWXSMYYQSVDSBYL"; | ||
String EMAIL_PASSWORD = "ICGUDLCLYOEZOAJF"; | ||
|
||
/** 邮件HMAC256加密算法头字符串 */ | ||
String EMAIL_HMAC256_TOKEN_HEAD = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
FROM node:18.18.0 as build-stage | ||
MAINTAINER WanSen AI<[email protected]> | ||
WORKDIR app | ||
WORKDIR /app | ||
|
||
COPY . ./ | ||
|
||
# 设置 node 阿里镜像 | ||
RUN npm config set registry https://registry.npmmirror.com | ||
|
||
ENV NODE_OPTIONS --max-old-space-size=16384 | ||
|
||
RUN npm install pnpm -g | ||
RUN pnpm install --frozen-lockfile | ||
RUN pnpm build:docker | ||
RUN npm install pnpm -g && \ | ||
pnpm install --frozen-lockfile && \ | ||
pnpm build:docker | ||
|
||
RUN echo "Build Success" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.