mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Users must accept terms of use of the network
This commit is contained in:
parent
688a9de2b1
commit
4383efa32c
@ -93,6 +93,13 @@ ComunicWeb.pages.createAccount = {
|
|||||||
type: "password"
|
type: "password"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//Terms of use must have been accepted
|
||||||
|
var siteTerms = createFormGroup({
|
||||||
|
target: formRoot,
|
||||||
|
label: "I have read and accepted the <a href='"+ComunicWeb.__config.aboutWebsiteURL+"about/terms/' target='_blank'>terms of use of the network</a>",
|
||||||
|
type: "checkbox"
|
||||||
|
});
|
||||||
|
|
||||||
//Submit form
|
//Submit form
|
||||||
var submitButtonContainer = createElem2({
|
var submitButtonContainer = createElem2({
|
||||||
appendTo: formRoot,
|
appendTo: formRoot,
|
||||||
@ -130,6 +137,10 @@ ComunicWeb.pages.createAccount = {
|
|||||||
//Empty the message target
|
//Empty the message target
|
||||||
emptyElem(messagesTarget);
|
emptyElem(messagesTarget);
|
||||||
|
|
||||||
|
//Check the terms of use have been accepted
|
||||||
|
if(!siteTerms.checked)
|
||||||
|
return notify("Please read and accept the terms of use of the website!", "danger");
|
||||||
|
|
||||||
//Check the first name
|
//Check the first name
|
||||||
if(!ComunicWeb.common.formChecker.checkInput(firstNameInput, true))
|
if(!ComunicWeb.common.formChecker.checkInput(firstNameInput, true))
|
||||||
return notify("Please check your first name !", "danger");
|
return notify("Please check your first name !", "danger");
|
||||||
|
Loading…
Reference in New Issue
Block a user