1
0
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:
2020-03-21 17:16:30 +01:00
parent beafd7a26b
commit 46dce030d7
4 changed files with 59 additions and 0 deletions

View File

@ -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,