feat: 支持邮箱和手机号同时注册

This commit is contained in:
archer
2023-04-17 18:42:56 +08:00
parent 7e54421190
commit b064e704f3
7 changed files with 49 additions and 50 deletions

View File

@@ -18,18 +18,18 @@ export const sendAuthCode = ({
export const getTokenLogin = () => GET<UserType>('/user/tokenLogin');
export const postRegister = ({
phone,
username,
password,
code,
inviterId
}: {
phone: string;
username: string;
code: string;
password: string;
inviterId: string;
}) =>
POST<ResLogin>('/user/register', {
phone,
username,
code,
inviterId,
password: createHashPassword(password)