feat: 手机验证码作为用户凭证

This commit is contained in:
archer
2023-04-16 19:53:50 +08:00
parent 36dad6df33
commit faf722fa15
20 changed files with 375 additions and 167 deletions

View File

@@ -11,7 +11,7 @@ export type ServiceName = 'openai';
export interface UserModelSchema {
_id: string;
email: string;
username: string;
password: string;
balance: number;
openaiKey: string;
@@ -20,7 +20,7 @@ export interface UserModelSchema {
export interface AuthCodeSchema {
_id: string;
email: string;
username: string;
code: string;
type: 'register' | 'findPassword';
expiredTime: number;

7
src/types/user.d.ts vendored
View File

@@ -1,11 +1,6 @@
export enum UserNumberEnum {
phone = 'phone',
wx = 'wx'
}
export interface UserType {
_id: string;
email: string;
username: string;
openaiKey: string;
balance: number;
}