42 $this->value = $a_value;
62 $this->retype = $a_val;
82 $this->retypevalue = $a_retypevalue;
92 return $this->retypevalue;
102 $this->maxlength = $a_maxlength;
122 $this->size = $a_size;
132 $this->preselection = $a_val;
173 $this->validateauthpost = $a_validateauthpost;
193 $this->requiredonauth = $a_requiredonauth;
213 $this->skip_syntax_check = $a_val;
223 return $this->skip_syntax_check;
233 $this->autocomplete = (bool)$a_value;
259 $this->
setAlert($lng->txt(
"msg_input_is_required"));
271 $this->
setAlert($lng->txt(
"form_password_required_for_auth"));
280 $this->
setAlert($lng->txt(
"form_password_not_allowed_for_auth"));
288 $this->
setAlert($lng->txt(
"passwd_not_match"));
296 if($custom_error !=
'') $this->
setAlert($custom_error);
297 else $this->
setAlert($lng->txt(
"passwd_invalid"));
312 $ptpl =
new ilTemplate(
"tpl.prop_password.html",
true,
true,
"Services/Form");
318 $ptpl->setCurrentBlock(
"retype");
319 $ptpl->setVariable(
"RSIZE", $this->
getSize());
320 $ptpl->setVariable(
"RID", $this->
getFieldId());
321 $ptpl->setVariable(
"RMAXLENGTH", $this->
getMaxLength());
322 $ptpl->setVariable(
"RPOST_VAR", $this->
getPostVar());
326 $ptpl->setVariable(
"RAUTOCOMPLETE",
"autocomplete=\"off\"");
337 $ptpl->setVariable(
"RDISABLED",
338 " disabled=\"disabled\"");
340 $ptpl->setVariable(
"TXT_RETYPE", $lng->txt(
"form_retype_password"));
341 $ptpl->parseCurrentBlock();
346 $ptpl->setCurrentBlock(
"prop_password_propval");
348 $ptpl->parseCurrentBlock();
350 $ptpl->setVariable(
"POST_VAR", $this->
getPostVar());
351 $ptpl->setVariable(
"ID", $this->
getFieldId());
352 $ptpl->setVariable(
"SIZE", $this->
getSize());
356 $ptpl->setVariable(
"DISABLED",
357 " disabled=\"disabled\"");
361 $ptpl->setVariable(
"AUTOCOMPLETE",
"autocomplete=\"off\"");
368 foreach ($passwd_list as $passwd)
371 $ptpl->setCurrentBlock(
"select_input");
372 $ptpl->setVariable(
"POST_VAR", $this->
getPostVar());
373 $ptpl->setVariable(
"OP_ID", $this->
getPostVar().
"_".$i);
374 $ptpl->setVariable(
"VAL_RADIO_OPTION", $passwd);
375 $ptpl->setVariable(
"TXT_RADIO_OPTION", $passwd);
376 $ptpl->parseCurrentBlock();
380 $a_tpl->setCurrentBlock(
"prop_generic");
381 $a_tpl->setVariable(
"PROP_GENERIC" ,$ptpl->get());
382 $a_tpl->parseCurrentBlock();