33 parent::__construct($a_title, $a_postvar);
45 $this->value = $a_value;
65 $this->retype = $a_val;
85 $this->retypevalue = $a_retypevalue;
95 return $this->retypevalue;
105 $this->maxlength = $a_maxlength;
125 $this->size = $a_size;
135 $this->preselection = $a_val;
176 $this->validateauthpost = $a_validateauthpost;
196 $this->requiredonauth = $a_requiredonauth;
216 $this->skip_syntax_check = $a_val;
226 return $this->skip_syntax_check;
236 $this->autocomplete_disabled = (bool)$a_value;
262 $this->
setAlert($lng->txt(
"msg_input_is_required"));
274 $this->
setAlert($lng->txt(
"form_password_required_for_auth"));
283 $this->
setAlert($lng->txt(
"form_password_not_allowed_for_auth"));
291 $this->
setAlert($lng->txt(
"passwd_not_match"));
299 if($custom_error !=
'') $this->
setAlert($custom_error);
300 else $this->
setAlert($lng->txt(
"passwd_invalid"));
315 $ptpl =
new ilTemplate(
"tpl.prop_password.html",
true,
true,
"Services/Form");
321 $ptpl->setCurrentBlock(
"retype");
322 $ptpl->setVariable(
"RSIZE", $this->
getSize());
323 $ptpl->setVariable(
"RID", $this->
getFieldId());
324 $ptpl->setVariable(
"RMAXLENGTH", $this->
getMaxLength());
325 $ptpl->setVariable(
"RPOST_VAR", $this->
getPostVar());
329 $ptpl->setVariable(
"RAUTOCOMPLETE",
"autocomplete=\"off\"");
340 $ptpl->setVariable(
"RDISABLED",
341 " disabled=\"disabled\"");
343 $ptpl->setVariable(
"TXT_RETYPE", $lng->txt(
"form_retype_password"));
344 $ptpl->parseCurrentBlock();
349 $ptpl->setCurrentBlock(
"prop_password_propval");
351 $ptpl->parseCurrentBlock();
353 $ptpl->setVariable(
"POST_VAR", $this->
getPostVar());
354 $ptpl->setVariable(
"ID", $this->
getFieldId());
355 $ptpl->setVariable(
"SIZE", $this->
getSize());
359 $ptpl->setVariable(
"DISABLED",
360 " disabled=\"disabled\"");
364 $ptpl->setVariable(
"AUTOCOMPLETE",
"autocomplete=\"off\"");
371 foreach ($passwd_list as $passwd)
374 $ptpl->setCurrentBlock(
"select_input");
375 $ptpl->setVariable(
"POST_VAR", $this->
getPostVar());
376 $ptpl->setVariable(
"OP_ID", $this->
getPostVar().
"_".$i);
377 $ptpl->setVariable(
"VAL_RADIO_OPTION", $passwd);
378 $ptpl->setVariable(
"TXT_RADIO_OPTION", $passwd);
379 $ptpl->parseCurrentBlock();
395 $a_tpl->setCurrentBlock(
"prop_generic");
396 $a_tpl->setVariable(
"PROP_GENERIC",
$html);
397 $a_tpl->parseCurrentBlock();
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static generatePasswords($a_number)
Generate a number of passwords.
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
_getAuthMode($a_auth_mode, $a_db_handler='')