1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-22 01:15:16 +00:00

Can check if security questions has been defined

This commit is contained in:
2020-07-13 13:15:26 +02:00
parent 515f8d2ffc
commit e76b3180e7
6 changed files with 35 additions and 5 deletions

View File

@ -64,6 +64,10 @@ fn exec_get_user_query(query: database::QueryInfo) -> ResultBoxError<User> {
block_comments_on_his_page: res.get_legacy_bool("bloquecommentaire")?,
allow_posts_from_friends: res.get_legacy_bool("autoriser_post_amis")?,
account_creation_time: res.get_date_as_time("date_creation")?,
security_question_1: res.get_optional_str("question1")?,
security_answer_1: res.get_optional_str("reponse1")?,
security_question_2: res.get_optional_str("question2")?,
security_answer_2: res.get_optional_str("reponse2")?,
})
})
}