mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 00:25:17 +00:00
Can get general settings
This commit is contained in:
@ -193,6 +193,7 @@ export class UserHelper {
|
||||
private static async DbToUser(row: any) : Promise<User> {
|
||||
return new User({
|
||||
id: row.ID,
|
||||
email: row.mail,
|
||||
firstName: row.prenom,
|
||||
lastName: row.nom,
|
||||
timeCreate: new Date(row.date_creation).getTime()/1000,
|
||||
@ -204,6 +205,7 @@ export class UserHelper {
|
||||
publicNote: row.public_note,
|
||||
blockComments: row.bloquecommentaire == 1,
|
||||
allowPostsFromFriends: row.autoriser_post_amis == 1,
|
||||
allowMails: row.autorise_mail == 1,
|
||||
security_question_1: row.question1,
|
||||
security_answer_1: row.reponse1,
|
||||
security_question_2: row.question2,
|
||||
|
Reference in New Issue
Block a user