mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
Add password encryption salt
This commit is contained in:
parent
e2301a75de
commit
70a4c6f15a
2 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,7 @@ export type UserDBEntry = {
|
||||||
primaryPhone?: string;
|
primaryPhone?: string;
|
||||||
passwordEncrypted?: string;
|
passwordEncrypted?: string;
|
||||||
passwordEncryptionMethod?: string;
|
passwordEncryptionMethod?: string;
|
||||||
|
passwordEncryptionSalt?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const Users = Object.freeze({
|
export const Users = Object.freeze({
|
||||||
|
@ -18,5 +19,6 @@ export const Users = Object.freeze({
|
||||||
primaryPhone: 'primary_phone',
|
primaryPhone: 'primary_phone',
|
||||||
passwordEncrypted: 'password_encrypted',
|
passwordEncrypted: 'password_encrypted',
|
||||||
passwordEncryptionMethod: 'password_encryption_method',
|
passwordEncryptionMethod: 'password_encryption_method',
|
||||||
|
passwordEncryptionSalt: 'password_encryption_salt',
|
||||||
},
|
},
|
||||||
} as const);
|
} as const);
|
||||||
|
|
|
@ -5,5 +5,6 @@ create table users (
|
||||||
primary_phone varchar(128) unique,
|
primary_phone varchar(128) unique,
|
||||||
password_encrypted varchar(128),
|
password_encrypted varchar(128),
|
||||||
password_encryption_method varchar(32),
|
password_encryption_method varchar(32),
|
||||||
|
password_encryption_salt varchar(128),
|
||||||
primary key (id)
|
primary key (id)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue