Skip to content

Commit 9444ff3

Browse files
authored
Merge pull request #238 from MaaAssistantArknights/dev
Release
2 parents 93bfb1a + ded34d8 commit 9444ff3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+593
-142
lines changed
47 KB
Loading
45.5 KB
Loading
51.3 KB
Loading
66.1 KB
Loading
54.4 KB
Loading
43.7 KB
Loading
62.9 KB
Loading
55.4 KB
Loading
49.9 KB
Loading

src/apis/auth.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,35 @@ export interface RegisterResponse {}
7070

7171
export const requestRegister = (
7272
email: string,
73+
registrationToken: string,
7374
username: string,
7475
password: string,
7576
) => {
7677
return jsonRequest<Response<RegisterResponse>>('/user/register', {
7778
method: 'POST',
7879
json: {
7980
email,
81+
registration_token: registrationToken,
8082
user_name: username,
8183
password,
8284
},
8385
})
8486
}
8587

88+
export interface EmailToenResponse {}
89+
90+
export const reqeustRegistrationToken = (email: string) => {
91+
return jsonRequest<Response<EmailToenResponse>>(
92+
'/user/sendRegistrationToken',
93+
{
94+
method: 'POST',
95+
json: {
96+
email,
97+
},
98+
},
99+
)
100+
}
101+
86102
export interface UpdateInfoResponse {}
87103

88104
export const requestUpdateInfo = ({

0 commit comments

Comments
 (0)