mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 03:11:34 +00:00
added display name to users
This commit is contained in:
parent
cbb8950b46
commit
c0294f4c39
16 changed files with 112 additions and 14 deletions
|
|
@ -87,6 +87,8 @@ class User extends Model {
|
|||
/** @type {string} */
|
||||
this.username
|
||||
/** @type {string} */
|
||||
this.displayName
|
||||
/** @type {string} */
|
||||
this.email
|
||||
/** @type {string} */
|
||||
this.pash
|
||||
|
|
@ -425,6 +427,7 @@ class User extends Model {
|
|||
primaryKey: true
|
||||
},
|
||||
username: DataTypes.STRING,
|
||||
displayName: DataTypes.STRING,
|
||||
email: DataTypes.STRING,
|
||||
pash: DataTypes.STRING,
|
||||
type: DataTypes.STRING,
|
||||
|
|
@ -518,6 +521,7 @@ class User extends Model {
|
|||
const json = {
|
||||
id: this.id,
|
||||
username: this.username,
|
||||
displayName: this.displayName,
|
||||
email: this.email,
|
||||
type: this.type,
|
||||
token: this.type === 'root' && hideRootToken ? '' : this.token,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue