35 $this->lng = $DIC->language();
36 parent::__construct($a_title, $a_postvar);
48 $this->value = $a_value;
68 $this->retype = $a_val;
88 $this->retypevalue = $a_retypevalue;
98 return $this->retypevalue;
108 $this->maxlength = $a_maxlength;
128 $this->
size = $a_size;
159 $this->validateauthpost = $a_validateauthpost;
179 $this->requiredonauth = $a_requiredonauth;
199 $this->skip_syntax_check = $a_val;
209 return $this->skip_syntax_check;
219 $this->autocomplete_disabled = (bool) $a_value;
240 $this->use_strip_slashes = $a_stat;
276 $this->
setAlert(
$lng->txt(
"form_password_required_for_auth"));
284 $this->
setAlert(
$lng->txt(
"form_password_not_allowed_for_auth"));
298 if ($custom_error !=
'') {
317 $ptpl =
new ilTemplate(
"tpl.prop_password.html",
true,
true,
"Services/Form");
320 $ptpl->setCurrentBlock(
"retype");
321 $ptpl->setVariable(
"RSIZE", $this->
getSize());
322 $ptpl->setVariable(
"RID", $this->
getFieldId());
324 $ptpl->setCurrentBlock(
"rmaxlength");
325 $ptpl->setVariable(
"RMAXLENGTH", $this->
getMaxLength());
326 $ptpl->parseCurrentBlock();
328 $ptpl->setVariable(
"RPOST_VAR", $this->
getPostVar());
331 $ptpl->setVariable(
"RAUTOCOMPLETE",
"autocomplete=\"off\"");
343 " disabled=\"disabled\"" 346 $ptpl->setVariable(
"TXT_RETYPE",
$lng->txt(
"form_retype_password"));
347 $ptpl->parseCurrentBlock();
351 $ptpl->setCurrentBlock(
"prop_password_propval");
353 $ptpl->parseCurrentBlock();
355 $ptpl->setVariable(
"POST_VAR", $this->
getPostVar());
356 $ptpl->setVariable(
"ID", $this->
getFieldId());
357 $ptpl->setVariable(
"SIZE", $this->
getSize());
359 $ptpl->setCurrentBlock(
"maxlength");
361 $ptpl->parseCurrentBlock();
366 " disabled=\"disabled\"" 370 $ptpl->setVariable(
"AUTOCOMPLETE",
"autocomplete=\"off\"");
373 $ptpl->setVariable(
"REQUIRED",
"required=\"required\"");
387 $a_tpl->setCurrentBlock(
"prop_generic");
388 $a_tpl->setVariable(
"PROP_GENERIC",
$html);
389 $a_tpl->parseCurrentBlock();
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static _getAuthMode($a_auth_mode, $a_db_handler='')
static isPassword($a_passwd, &$customError=null)
validates a password public
static _allowPasswordModificationByAuthMode($a_auth_mode)
Allow password modification.
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled